This is my hook_menu.
function coverflow_menu(){ $items = array(); $items['coverflow'] = array( 'title' => 'Coverflow Slider', 'page callback' => 'coverflow_page', 'access arguments'=> array('access content'), ); $items['admin/config/coverflow'] = array( 'title' => 'Coverflow Settings', 'description' => 'Coverflow Slider Settings.', 'type' => 'MENU_NORMAL_ITEM', 'page callback' => 'drupal_get_form', 'page arguments' => array('coverflow_admin_form'), 'access arguments'=> array('administer site configuration'), 'file' => 'coverflow_admin_form.inc', 'file path' => drupal_get_path('module', 'coverflow'), ); return $items; }
And this is my callback function for coverflow_admin_form
function coverflow_admin_form($form, &$form_state){ $form = array(); $form['height'] = array( '#title' => t('Height'), '#type' => 'textfield', '#size' => 40, '#maxlength' => 120, '#required' => TRUE, ); $form['width'] = array( '#title' => t('Width'), '#type' => 'textfield', '#size' => 40, '#maxlength' => 120, '#required' => TRUE, ); $form['font-size'] = array( '#title' => t('Font Size'), '#type' => 'textfield', '#size' => 40, '#maxlength' => 120, '#required' => TRUE, ); $form['font-family'] = array( '#title' => t('Font Family'), '#type' => 'textfield', '#size' => 40, '#maxlength' => 120, '#required' => TRUE, ); $form['font-color'] = array( '#title' => t('Font Color'), '#type' => 'textfield', '#size' => 40, '#maxlength' => 120, '#required' => TRUE, ); $form['submit'] = array( '#type' => 'submit', '#value' => t('Save settings'), ); return system_settings_form($form); }
After installing module im not getting configuration link at admin/config/coverflow.
What is wrong in this code?
admin/config/development/coverflow
oradmin/config/content/coverflow
or for any other section in admin.