<em>Starting a new module and cant find the solution for this problem. I am trying to check the admin settings page for the module, and I am getting this error:<br><br>Invalid argument supplied for foreach()</em> in <em>/home/dangerou/public_html/includes/menu.inc</em> on line <em>258</em>.<br>
<br>Here is the code in the .module:<br><br>function time_card_menu() {<br> $items['admin/settings/time_card'] = array(<br> 'title' => 'Time card settings',<br> 'description' => 'Change how time card behave.',<br>
'page callback' => 'drupal_get_form',<br> 'page arguments' => array('time_card_admin_settings'),<br> 'access arguments' => array('administer site configuration'),<br>
'type' => MENU_NORMAL_ITEM,<br> 'file' => 'time_card.admin.inc',<br> );<br> <br> return $items;<br>}<br><br>Here is the code in the .inc:<br><br>function time_card_admin_settings() {<br>
$options = array('weekly' => 'Weekly');<br><br> $form['time_card_pay_periods'] = array(<br> '#type' => 'checkboxes',<br> '#title' => t('Your Pay Period is:'),<br>
'#options' => $options,<br> '#default_value' => variable_get('time_card_pay_periods', array('weekly')),<br> '#description' => t('This will tell the system how many weeks of information to collect for hour totals.'),<br>
);<br><br> return system_settings_form($form);<br><br>}<br><br>What is it that I am not seeing.<br>