All pastes #577520 Raw Edit

Miscellany

public php v1 · immutable
·published 2007-06-19 23:02 UTC
rendered paste body
function article_help($section){	switch ($section) {		case 'admin/help#article':			return t('Allow users to view nodes of multiple types in a central location.');	}}function article_menu($may_cache){	$items = array();	if ($may_cache){		$items[] = array('path' => 'article',				'title' => t(variable_get('article_title','Articles')),				'access' => user_access('access content'),				'type' => MENU_NORMAL_ITEM,				'callback' => 'article_page');		$items[] = array('path' => 'admin/article',				'title'=> t(variable_get('article_admin_title','Article Administration')),				'access' => user_access('administer access content'),				'type' => MENU_CALLBACK,				'callback' => 'article_admin_page');	}	return $items;}function article_page(){	$items['article'] = array(			'title' => 'EED',			'callback' => 'article_display',			);	return $items;}function article_display(){	return "<h1>this is display</h1>";}function article_admin_page(){	return "<h1>this is me</h1>";}