$view = new view; $view->name = 'address_view'; $view->description = 'Lists default address for users'; $view->tag = ''; $view->view_php = ''; $view->base_table = 'users'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('fields', array( 'address_name' => array( 'label' => 'address_name', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'address_name', 'table' => 'uc_addresses', 'field' => 'address_name', 'relationship' => 'none', ), 'aid' => array( 'label' => 'aid', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'aid', 'table' => 'uc_addresses', 'field' => 'aid', 'relationship' => 'none', ), 'city' => array( 'label' => 'city', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'city', 'table' => 'uc_addresses', 'field' => 'city', 'relationship' => 'none', ), 'company' => array( 'label' => 'company', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'company', 'table' => 'uc_addresses', 'field' => 'company', 'relationship' => 'none', ), 'country' => array( 'label' => 'country', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'country', 'table' => 'uc_addresses', 'field' => 'country', 'relationship' => 'none', ), 'created' => array( 'label' => 'created', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'date_format' => 'small', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'created', 'table' => 'uc_addresses', 'field' => 'created', 'relationship' => 'none', ), 'first_name' => array( 'label' => 'first_name', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'first_name', 'table' => 'uc_addresses', 'field' => 'first_name', 'relationship' => 'none', ), 'last_name' => array( 'label' => 'last_name', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'last_name', 'table' => 'uc_addresses', 'field' => 'last_name', 'relationship' => 'none', ), 'modified' => array( 'label' => 'modified', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'date_format' => 'small', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'modified', 'table' => 'uc_addresses', 'field' => 'modified', 'relationship' => 'none', ), 'phone' => array( 'label' => 'phone', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'phone', 'table' => 'uc_addresses', 'field' => 'phone', 'relationship' => 'none', ), 'postal_code' => array( 'label' => 'postal_code', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'postal_code', 'table' => 'uc_addresses', 'field' => 'postal_code', 'relationship' => 'none', ), 'street1' => array( 'label' => 'street1', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'street1', 'table' => 'uc_addresses', 'field' => 'street1', 'relationship' => 'none', ), 'street2' => array( 'label' => 'street2', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'street2', 'table' => 'uc_addresses', 'field' => 'street2', 'relationship' => 'none', ), 'uid' => array( 'label' => 'uid', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_user' => 1, 'exclude' => 0, 'id' => 'uid', 'table' => 'uc_addresses', 'field' => 'uid', 'relationship' => 'none', ), 'zone' => array( 'label' => 'zone', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'zone', 'table' => 'uc_addresses', 'field' => 'zone', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'aid' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'aid', 'table' => 'uc_addresses', 'field' => 'aid', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'address_name' => 'address_name', 'aid' => 'aid', 'city' => 'city', 'company' => 'company', 'country' => 'country', 'created' => 'created', 'first_name' => 'first_name', 'last_name' => 'last_name', 'modified' => 'modified', 'phone' => 'phone', 'postal_code' => 'postal_code', 'street1' => 'street1', 'street2' => 'street2', 'uid' => 'uid', 'zone' => 'zone', ), 'info' => array( 'address_name' => array( 'sortable' => 0, 'separator' => '', ), 'aid' => array( 'sortable' => 0, 'separator' => '', ), 'city' => array( 'sortable' => 0, 'separator' => '', ), 'company' => array( 'sortable' => 0, 'separator' => '', ), 'country' => array( 'sortable' => 0, 'separator' => '', ), 'created' => array( 'sortable' => 0, 'separator' => '', ), 'first_name' => array( 'sortable' => 0, 'separator' => '', ), 'last_name' => array( 'sortable' => 0, 'separator' => '', ), 'modified' => array( 'sortable' => 0, 'separator' => '', ), 'phone' => array( 'sortable' => 0, 'separator' => '', ), 'postal_code' => array( 'sortable' => 0, 'separator' => '', ), 'street1' => array( 'sortable' => 0, 'separator' => '', ), 'street2' => array( 'sortable' => 0, 'separator' => '', ), 'uid' => array( 'sortable' => 0, 'separator' => '', ), 'zone' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => '-1', ));