System Settings Form function variable missing
budda - November 26, 2007 - 01:41
| Project: | Views Alpha Pager |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
When trying to view the settings page PHP is spitting PHP Warning: Missing argument 2 for system_settings_form(), called in /var/www/vhosts/drupal-47/modules/views_alpha_pager/views_alpha_pager.module on line 23 and defined in /var/www/vhosts/drupal-47/modules/system.module on line 747
Suggested change:
function views_alpha_pager_settings() {
$form['views_alpha_pager_ignore'] = array(
'#type' => 'textfield',
'#title' => t('Ignore Leading Words'),
'#default_value' => variable_get('views_alpha_pager_ignore', t('a the and')),
'#description' => t('When sorting, ignore leading common words'),
);
return system_settings_form('views_alpha_pager_settings_form', $form);
}