function imagefield_extended_admin_settings_form in ImageField Extended 6.3
Same name and namespace in other branches
- 6.4 imagefield_extended.admin.inc \imagefield_extended_admin_settings_form()
Menu callback. Used to define what field types will be available when creating an imagefield with additional fields CCK field.
1 string reference to 'imagefield_extended_admin_settings_form'
- imagefield_extended_menu in ./
imagefield_extended.module - Implementation of hook_menu().
File
- ./
imagefield_extended.admin.inc, line 13 - Administration related functions.
Code
function imagefield_extended_admin_settings_form() {
$form = array();
$form['imagefield_extended_textfields'] = array(
'#type' => 'textarea',
'#title' => t('Additional text fields'),
'#default_value' => variable_get('imagefield_extended_textfields', ''),
'#description' => t('A list of new textfields to make available. One textfield form API key / value per line. Key / value pairs must be entered seperated by pipes (|), such as "fapi_safe_key|Some readable option".') . '<br/>' . t('The following are reserved keywords and can not be used: "description", "alt", "title".'),
'#cols' => 60,
'#rows' => 5,
'#element_validate' => array(
'imagefield_extended_options_validate',
),
);
$form['imagefield_extended_checkboxes'] = array(
'#type' => 'textarea',
'#title' => t('Additional checkboxes fields'),
'#default_value' => variable_get('imagefield_extended_checkboxes', ''),
'#description' => t('A list of new checkboxes to make available. One checkbox form API key / value info per line. Key / value pairs must be entered seperated by pipes (|), such as "fapi_safe_key|Some readable option".') . '<br/>' . t('The following are reserved keywords and can not be used: "description", "alt", "title".'),
'#cols' => 60,
'#rows' => 5,
'#element_validate' => array(
'imagefield_extended_options_validate',
),
);
return system_settings_form($form);
}