You are here

function block_class_form_submit in Block Class 6.2

Same name and namespace in other branches
  1. 6 block_class.module \block_class_form_submit()
  2. 7.2 block_class.module \block_class_form_submit()
  3. 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'
block_class_form_block_admin_configure_alter in ./block_class.module
Implements hook_form_FORM_ID_alter().

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));
}