'nid', 'field' => 'nid', ); $data['print_mail_page_counter']['table']['join']['node'] = array( // 'left_field' is the primary key in the referenced table. // 'field' is the foreign key in this table. 'left_field' => 'nid', 'field' => 'path', 'handler' => 'print_join_page_counter', ); // print_mail_node_conf fields. $data['print_mail_node_conf']['link'] = array( 'title' => t('Email: Show link'), 'help' => t('Whether to show the send by email link.'), 'field' => array( 'handler' => 'views_handler_field_boolean', 'click sortable' => TRUE, ), 'filter' => array( 'handler' => 'views_handler_filter_boolean_operator', 'label' => t('Active'), 'type' => 'yes-no', ), 'sort' => array( 'handler' => 'views_handler_sort', ), ); $data['print_mail_node_conf']['comments'] = array( 'title' => t('Email: Show link in individual comments'), 'help' => t('Whether to show the send by email link in individual comments.'), 'field' => array( 'handler' => 'views_handler_field_boolean', 'click sortable' => TRUE, ), 'filter' => array( 'handler' => 'views_handler_filter_boolean_operator', 'label' => t('Active'), 'type' => 'yes-no', ), 'sort' => array( 'handler' => 'views_handler_sort', ), ); $data['print_mail_node_conf']['url_list'] = array( 'title' => t('Email: Show Printer-friendly URLs list'), 'help' => t('Whether to show the URL list.'), 'field' => array( 'handler' => 'views_handler_field_boolean', 'click sortable' => TRUE, ), 'filter' => array( 'handler' => 'views_handler_filter_boolean_operator', 'label' => t('Active'), 'type' => 'yes-no', ), 'sort' => array( 'handler' => 'views_handler_sort', ), ); // print_mail_page_counter fields. $data['print_mail_page_counter']['totalcount'] = array( 'title' => t('Email: Number of page accesses'), 'help' => t('Counter of accesses to the send by email form for this node.'), 'field' => array( 'handler' => 'views_handler_field_numeric', 'click sortable' => TRUE, ), 'sort' => array( 'handler' => 'views_handler_sort', ), 'filter' => array( 'handler' => 'views_handler_filter_numeric', ), ); $data['print_mail_page_counter']['timestamp'] = array( 'title' => t('Email: Last access'), 'help' => t("The date of the last access to the node's send by email form."), 'field' => array( 'handler' => 'views_handler_field_date', 'click sortable' => TRUE, ), 'sort' => array( 'handler' => 'views_handler_sort_date', ), 'filter' => array( 'handler' => 'views_handler_filter_date', ), ); $data['print_mail_page_counter']['sentcount'] = array( 'title' => t('Email: Number of sent emails'), 'help' => t('Counter of emails sent for this node.'), 'field' => array( 'handler' => 'views_handler_field_numeric', 'click sortable' => TRUE, ), 'sort' => array( 'handler' => 'views_handler_sort', ), 'filter' => array( 'handler' => 'views_handler_filter_numeric', ), ); $data['print_mail_page_counter']['sent_timestamp'] = array( 'title' => t('Email: Last email sent'), 'help' => t('The date when the node was last sent by email.'), 'field' => array( 'handler' => 'views_handler_field_date', 'click sortable' => TRUE, ), 'sort' => array( 'handler' => 'views_handler_sort_date', ), 'filter' => array( 'handler' => 'views_handler_filter_date', ), ); return $data; }