1.实现显示模块
//admin/config配置页面添加journal块
$items['admin/config/journal'] = array(//注意格式为'admin/config/模块名',drupal会自动识别“admin/config/”的
'title' => 'journal',
'description' => 'Configure journal',
'position' => 'right',//配置显示在页面的 左右 位置
'weight' => 0,//数字越小越靠上(可以为负数)
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array('access administration pages'),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
2.实现显示向块中添加超链接
/*版权信息*/
$items['admin/config/journal/sitecopyright'] = array(//注意url前缀应为'admin/config/模块名/',drupal会自动识别“admin/config/模块名”的
'title'=>t('底部信息设置'),
'page callback' => 'drupal_get_form',
'page arguments' => array('form_journal_set_copyright'),
'file'=>'journal.admin.inc',
'access arguments'=>array('journal_config_copryright'),
'type' => MENU_NORMAL_ITEM
); /*期刊介绍-设置*/
$items['admin/config/journal/introduce']=array(
'title'=>'期刊介绍设置',
'description' => '设置期刊介绍的文本内容和格式.',
'page callback'=>'drupal_get_form',
'page arguments'=>array('form_journal_set_introduce'),
'file'=>'journal.admin.inc',
'access arguments'=>array('journal_config_copryright'),
'type' => MENU_NORMAL_ITEM
);
3,清理缓存,进入admin/config页面,看看效果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUEAAACrCAIAAAB3xLk2AAAIIUlEQVR4nO3du3LiSBSAYb8T7+TAscN9AeJ9Dycbu2ojgi0SqiZ1lTdwwhMoYwNsIfXpc0GNmD7L/5UDLFoXGP20YDyepxOAzJ5+9wEAaELDQG40DORGw0BuNAzkRsNAbk7DewB98xseAHSMhoHcaBjIjYaB3GgYyI2GgdxoGMiNhoHcaBjIjYaB3GgYyI2GgdxoGMiNhoHcGhvebzebzebl7ev87dfby2ZiXH4ettnuZ8O2+/EesUqx4ekq811dhsgxwAO4YcPfOX5H9dPYdj/4Db+8fRWDftr+SbTs8/JqYXQOPICbNfwd0GRanNwZani2hcv8fF6p6HM64ZdXATSMh3KrhisJT+6NNDyfxvfbzWbz8jKOm/d5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