How do I resolve the "Argument 1 passed to drupal_attributes() must be an array" error on my system_settings_form()?
$items['admin/structure/types/manage/%/attach/images'] = array(
    'title' =&gt; 'Attach: Images',
    'page callback' =&gt; 'attach_images_settings',
    'access arguments' =&gt; array('access administration pages'),
    'weight' =&gt; '10',
    'type' =&gt; MENU_LOCAL_TASK,
);


This should be 'page callback' =&gt; 'drupal_get_form', 'page arguments' =&gt; array('attach_images_settings'). (don't forget to clean the cache after making the change)

Also, form callbacks in Drupal 7 have a mandatory $form argument.