$view = new view; $view->name = 'user_map'; $view->description = ''; $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' => array( 'label' => 'Address', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'hide' => array( 'name' => 0, 'street' => 0, 'additional' => 0, 'city' => 0, 'province' => 0, 'postal_code' => 0, 'country' => 0, ), 'exclude' => 0, 'id' => 'address', 'table' => 'location', 'field' => 'address', 'relationship' => 'none', ), 'coordinates' => array( 'label' => 'Coordinates', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'style' => 'dms', 'exclude' => 0, 'id' => 'coordinates', 'table' => 'location', 'field' => 'coordinates', 'relationship' => 'none', ), 'name' => array( 'label' => 'Name', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'uid' => array( 'default_action' => 'not found', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'user', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'uid', 'table' => 'users', 'field' => 'uid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'page' => 0, 'story' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '14' => 0, '13' => 0, '9' => 0, '15' => 0, '5' => 0, '11' => 0, '12' => 0, '1' => 0, '19' => 0, '10' => 0, '7' => 0, '16' => 0, '20' => 0, '2' => 0, '4' => 0, '17' => 0, '6' => 0, '18' => 0, '8' => 0, '3' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_php' => '', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('style_plugin', 'gmap'); $handler->override_option('style_options', array( 'grouping' => '', 'macro' => '[gmap ]', 'datasource' => 'location', 'markers' => 'static', 'markertype' => 'pink', )); $handler = $view->new_display('block', 'Block', 'block_1'); $handler->override_option('block_description', 'User Map'); $handler->override_option('block_caching', -1);