function asaf_example_form_alter in Asaf (ajax submit for any form) 7
Same name and namespace in other branches
- 8 modules/asaf_example/asaf_example.module \asaf_example_form_alter()
File
- modules/
asaf_example/ asaf_example.module, line 100 - AJAX Examples module file with basic examples.
Code
function asaf_example_form_alter(&$form, &$form_state, $form_id) {
if (substr($form_id, 0, 13) == 'asaf_example_') {
$form['#attached']['css'][] = drupal_get_path('module', 'asaf_example') . '/css/asaf_example.css';
}
}