Hi,
For my module I'm trying to build a menu item that takes you to a form that handles administrative settings. However, even when I try it with just a very simple form I get an error. The error:
Notice: Undefined index: #attributes in theme_container() (line 3107 of C:\xampp\htdocs\plankenkoorts_drupal\public\includes\form.inc).
Recoverable fatal error: Argument 1 passed to drupal_attributes() must be an array, null given, called in C:\xampp\htdocs\plankenkoorts_drupal\public\includes\form.inc on line 3107 and defined in drupal_attributes() (line 2258 of C:\xampp\htdocs\plankenkoorts_drupal\public\includes\common.inc).
My code is very simple:
<?php
/**
* Implements hook_menu().
*/
function user_field_permissions_menu() {
$items['admin/config/people/accounts/field_permissions'] = array(
'title' => 'User field Permissions',
'description' => 'View and edit user field permissions',
'page callback' => 'drupal_get_form',
'page arguments' => array('user_field_permissions_overview'),
'access arguments' => array('administer user field permissions'),
'type' => MENU_LOCAL_TASK,
'weight' => 0,
);
return $items;
}
/**
* Menu callback; Field permissions overview.
*/
function user_field_permissions_overview() {
$form['where_to_save_edit'] = array(
'#type' => 'fieldset',