function _ffc_form_rules_ui_element_alter in Field formatter conditions 7
Helper function to hide our optional element and field data selectors.
2 calls to _ffc_form_rules_ui_element_alter()
- ffc_form_rules_ui_add_element_alter in ./
ffc.module - Implements hook_form_rules_ui_add_element_alter().
- ffc_form_rules_ui_edit_element_alter in ./
ffc.module - Implements hook_form_rules_ui_edit_element_alter().
File
- ./
ffc.rules.inc, line 119 - Rules integration for Field formatter conditions.
Code
function _ffc_form_rules_ui_element_alter(&$form) {
if (isset($form['parameter']) && isset($form['parameter']['ffc_element'])) {
$form['parameter']['ffc_element']['#access'] = FALSE;
$form['parameter']['ffc_field']['#access'] = FALSE;
}
}