We have frequent requirement to create admin form in Drupal.
Below is the simple example to create admin configuration block for your setting form.
Below is the simple example to create admin configuration block for your setting form.
$items['admin/config/myblk'] = array( 'title' => 'Title of the block', 'description' => 'description', 'position' => 'left', 'weight' => -25, 'page callback' => 'system_admin_menu_block_page', 'access arguments' => array('access administration pages'), ); $items['admin/config/myblk/myblk-setting'] = array( 'title' => 'Link to settings', 'description' => 'Description about link', 'page callback' => 'drupal_get_form', 'page arguments' => array('call_your_setting_form'), 'access arguments' => array('administer authentication'), 'weight' => 10, );
No comments:
Post a Comment