You are here

function views_handler_filter_amazon_node_module::construct in Amazon Product Advertisement API 6

File

includes/views_handler_filter_amazon_node_module.inc, line 7

Class

views_handler_filter_amazon_node_module
Filter node-linked amazom products by source module

Code

function construct() {
  parent::construct();
  $this->value_title = t('Source module');
  $options = array();
  $result = db_query("SELECT DISTINCT ain.module FROM {amazon_item_node} ain");
  while ($module = db_fetch_array($result)) {
    $options[$module['module']] = $module['module'];
  }
  $this->value_options = $options;
}