function _flag_lists_ops_get_field in Flag Lists 7.3
Same name and namespace in other branches
- 7 flag_lists.module \_flag_lists_ops_get_field()
Gets the FLO field if it exists on the passed-in view.
Return value
The field object if found. Otherwise, FALSE.
1 call to _flag_lists_ops_get_field()
- flag_lists_form_alter in ./
flag_lists.module - Implementation of hook_form_alter().
File
- ./
flag_lists.module, line 624 - The Flag Lists module.
Code
function _flag_lists_ops_get_field($view) {
foreach ($view->field as $field_name => $field) {
if ($field instanceof flag_lists_handler_field_ops) {
// Add in the view object for convenience.
$field->view = $view;
return $field;
}
}
return FALSE;
}