All pastes #738770 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-10-16 16:40 UTC
rendered paste body
						$module = node_load(arg(2));

						// Add the specific module callback
						$items[] = array(
							'path' => 'updates/module/' . $module->nid,
							'title' => t($module->title),
							'access' => TRUE,
							'callback' => 'updatecontrol_module_page',
							'callback arguments' => array(arg(2)),
							'type' => MENU_DEFAULT_LOCAL_TASK
						);

						// Add the add version callback
						$items[] = array(
							'path' => 'updates/module/' . $module->nid . '/create',
							'title' => t('Add Module Version'),
							'access' => TRUE,
							'callback' => 'drupal_get_form',
							'callback arguments' => 'updatecontrol_module_page_list',
							'type' => MENU_LOCAL_TASK
						);