function styles_ui_style_add_form in Styles 7.2
Page callback for adding a style.
1 string reference to 'styles_ui_style_add_form'
- styles_ui_menu in contrib/
styles_ui/ styles_ui.module - Implements hook_menu().
File
- contrib/
styles_ui/ styles_ui.admin.inc, line 62 - Administrative page callbacks for the Styles UI module.
Code
function styles_ui_style_add_form($form, $form_state, $field_type) {
$form = array();
$form['field_type'] = array(
'#type' => 'value',
'#value' => $field_type,
);
$form['name'] = array(
'#type' => 'textfield',
'#title' => t('Style name'),
'#description' => t('Enter the name of your desired style, which must be a unique name containing only alphanumeric characters and underscores.'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
return $form;
}