function _button_field_options_list in Button Field 7
Same name and namespace in other branches
- 8 button_field.rules.inc \_button_field_options_list()
Returns an array of button field names that can be used for the comparison condition.
Return value
array Names of all button fields.
1 string reference to '_button_field_options_list'
- button_field_rules_condition_info in ./
button_field.rules.inc - Implements hook_rules_condition_info().
File
- ./
button_field.rules.inc, line 101 - Rules integration for the button_field module.
Code
function _button_field_options_list() {
$fields = array();
foreach (field_read_fields(array(
'type' => 'button_field',
)) as $field) {
$fields[$field['field_name']] = $field['field_name'];
}
return $fields;
}