You are here

function views_pdf_rules_view_list in Views PDF 7.3

Same name and namespace in other branches
  1. 8 views_pdf.rules.inc \views_pdf_rules_view_list()
  2. 7 views_pdf.rules.inc \views_pdf_rules_view_list()
  3. 7.2 views_pdf.rules.inc \views_pdf_rules_view_list()
1 string reference to 'views_pdf_rules_view_list'
views_pdf_rules_action_info in ./views_pdf.rules.inc
Implements hook_rules_action_info().

File

./views_pdf.rules.inc, line 44
Rules integration of the mimemail and the PDF Views module.

Code

function views_pdf_rules_view_list() {
  $views = views_get_all_views();
  $list = array();
  foreach ($views as $view => $view_object) {
    foreach ($view_object->display as $display => $display_object) {
      if ($display_object->display_plugin == 'pdf') {
        $list[$view . ':' . $display] = $view_object->human_name . ': ' . $display_object->display_title;
      }
    }
  }
  return $list;
}