$view = new view; $view->name = 'Job_block'; $view->description = 'Jobs block'; $view->tag = 'job offers'; $view->view_php = ''; $view->base_table = 'node'; $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', 'Film Jobs', 'default'); $handler->override_option('relationships', array( 'content_profile_rel' => array( 'label' => 'Content Profile', 'required' => 0, 'type' => 'profile', 'id' => 'content_profile_rel', 'table' => 'users', 'field' => 'content_profile_rel', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 1, 'max_length' => '40', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'tid_1' => array( 'label' => '', 'alter' => array( 'alter_text' => 1, 'text' => '[tid_1]', 'make_link' => 1, 'path' => 'film-jobs/[tid_1]', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '300', 'word_boundary' => 1, 'ellipsis' => 0, 'strip_tags' => 0, 'html' => 0, ), 'type' => 'separator', 'separator' => ' | ', 'empty' => '', 'link_to_taxonomy' => 0, 'limit' => 1, 'vids' => array( '4' => 4, '2' => 0, '3' => 0, '6' => 0, '5' => 0, '10' => 0, '11' => 0, '12' => 0, '15' => 0, '16' => 0, ), 'exclude' => 0, 'id' => 'tid_1', 'table' => 'term_node', 'field' => 'tid', 'relationship' => 'none', ), 'tid' => array( 'label' => '', 'alter' => array( 'alter_text' => 1, 'text' => '[tid]', 'make_link' => 1, 'path' => 'film-jobs/[tid]', 'link_class' => '', 'alt' => 'Film Jobs', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'type' => 'separator', 'separator' => ',', 'link_to_taxonomy' => 0, 'limit' => 1, 'vids' => array( '1' => 1, '3' => 0, '2' => 0, '4' => 0, '5' => 0, ), 'exclude' => 0, 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'created' => array( 'label' => '', '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, ), 'date_format' => 'time ago', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'created', 'table' => 'node', 'field' => 'created', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'created' => array( 'order' => 'DESC', 'granularity' => 'second', 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'name' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '%1', 'breadcrumb' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'ignore', 'glossary' => 0, 'limit' => '0', 'case' => 'none', 'path_case' => 'none', 'transform_dash' => 0, 'add_table' => 0, 'require_value' => 0, 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '5' => 0, '4' => 0, '3' => 0, '6' => 0, '9' => 0, '7' => 0, ), 'me_redirect' => 0, 'me_validate_user_argument_type' => 'uid', 'me_validate_user_roles' => array( '2' => 0, '5' => 0, '4' => 0, '3' => 0, '6' => 0, '9' => 0, '7' => 0, ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'faq' => 0, 'product' => 0, 'admin_message' => 0, 'advertisement' => 0, 'article' => 0, 'casting' => 0, 'equipment' => 0, 'event' => 0, 'finance' => 0, 'jobs' => 0, 'jobwanted' => 0, 'page' => 0, 'profile' => 0, 'project' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '2' => 0, '3' => 0, '4' => 0, '6' => 0, '5' => 0, '10' => 0, '11' => 0, '12' => 0, '15' => 0, '16' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_node_flag_name' => '*relationship*', 'validate_argument_node_flag_test' => 'flaggable', 'validate_argument_node_flag_id_type' => 'id', 'validate_argument_user_flag_name' => '*relationship*', 'validate_argument_user_flag_test' => 'flaggable', 'validate_argument_user_flag_id_type' => 'id', 'validate_argument_php' => '', 'me_validate_user_restrict_roles' => 0, ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'jobs' => 'jobs', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Film Production Jobs'); $handler->override_option('header_format', '2'); $handler->override_option('header_empty', 0); $handler->override_option('footer', '
Add A Job Offer
'); $handler->override_option('footer_format', '2'); $handler->override_option('footer_empty', 1); $handler->override_option('empty', 'No jobs available at this time.'); $handler->override_option('empty_format', '1'); $handler->override_option('use_pager', '1'); $handler->override_option('use_more', 1); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'title' => 'title', 'tid' => 'tid', 'field_jobcity_value' => 'field_jobcity_value', 'created' => 'created', ), 'info' => array( 'title' => array( 'sortable' => 0, 'separator' => '', ), 'tid' => array( 'separator' => '', ), 'field_jobcity_value' => array( 'sortable' => 0, 'separator' => '', ), 'created' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => '-1', )); $handler = $view->new_display('block', 'Jobs Block', 'block_1'); $handler->override_option('relationships', array()); $handler->override_option('fields', array( 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 1, 'max_length' => '30', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'tid_1' => array( 'label' => '', 'alter' => array( 'alter_text' => 1, 'text' => '[tid_1]', 'make_link' => 1, 'path' => 'film-jobs/[tid_1]', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '300', 'word_boundary' => 1, 'ellipsis' => 0, 'strip_tags' => 0, 'html' => 0, ), 'type' => 'separator', 'separator' => ' | ', 'empty' => '', 'link_to_taxonomy' => 0, 'limit' => 1, 'vids' => array( '4' => 4, '2' => 0, '3' => 0, '6' => 0, '5' => 0, '10' => 0, '11' => 0, '12' => 0, '15' => 0, '16' => 0, ), 'exclude' => 0, 'id' => 'tid_1', 'table' => 'term_node', 'field' => 'tid', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'tid' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'php', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'empty', 'break_phrase' => 1, 'add_table' => 0, 'require_value' => 0, 'reduce_duplicates' => 0, 'set_breadcrumb' => 0, 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '5' => 0, '3' => 0, '6' => 0, '4' => 0, ), 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '$type = \'profile\'; $account = menu_get_object(\'user_uid_optional\'); if ($node = content_profile_load($type, $account->uid)) { return implode(\'+\', array_keys($node->taxonomy)); } else { return FALSE; }', 'validate_argument_node_type' => array( 'product' => 0, 'article' => 0, 'equipment' => 0, 'event' => 0, 'finance' => 0, 'jobs' => 0, 'page' => 0, 'profile' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '1' => 1, '3' => 0, '2' => 0, '4' => 0, '6' => 0, '8' => 0, '5' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_node_flag_name' => '*relationship*', 'validate_argument_node_flag_test' => 'flaggable', 'validate_argument_node_flag_id_type' => 'id', 'validate_argument_user_flag_name' => '*relationship*', 'validate_argument_user_flag_test' => 'flaggable', 'validate_argument_user_flag_id_type' => 'id', 'validate_argument_php' => 'if (arg(0) == \'node\' && is_numeric(arg(1))) { $node=node_load(arg(1)); return implode(\'+\', array_keys($node->taxonomy)); } else { return FALSE; }', ), )); $handler->override_option('empty', ''); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'title' => 'title', 'tid_1' => 'tid_1', ), 'info' => array( 'title' => array( 'sortable' => 0, 'separator' => '', ), 'tid_1' => array( 'separator' => '', ), ), 'default' => '-1', )); $handler->override_option('row_options', array( 'inline' => array( 'tid_1' => 'tid_1', 'created' => 'created', ), 'separator' => ' : ', 'hide_empty' => 0, )); $handler->override_option('block_description', ''); $handler->override_option('block_caching', -1);