You are here

function _views_send_get_field_selector in Views Send 7

Gets the selector field if it exists on the passed-in view.

Return value

The field object if found. Otherwise, FALSE.

2 calls to _views_send_get_field_selector()
views_send_form_alter in ./views_send.module
Implements hook_form_alter().
views_send_form_submit in ./views_send.module
Submit handler for all steps of the Views Send multistep form.

File

./views_send.module, line 52
The Views Send module.

Code

function _views_send_get_field_selector($view) {
  foreach ($view->field as $field_name => $field) {
    if ($field instanceof views_send_handler_field_selector) {

      // Add in the view object for convenience.
      $field->view = $view;
      return $field;
    }
  }
  return FALSE;
}