function block_class_form_submit in Block Class 6.2
Same name and namespace in other branches
- 6 block_class.module \block_class_form_submit()
- 7.2 block_class.module \block_class_form_submit()
- 7 block_class.module \block_class_form_submit()
Handle submission of the Block Class data.
@TODO (low priority) validate the text in the arbitrary text field to verify.
Parameters
array $form: The array of form elements.
array $form_state: The form field data.
1 string reference to 'block_class_form_submit'
File
- ./
block_class.module, line 175 - Provides core logic for adding block classes.
Code
function block_class_form_submit($form, &$form_state) {
$themes = list_themes();
foreach ($themes as $theme) {
if ($theme->status > 0) {
drupal_set_message(print_r($form_state['values'][$theme->name . '-classes'], TRUE));
}
}
drupal_set_message(print_r($form_state['values']['css_class'], TRUE));
}