$view = new view; $view->name = 'plan_action'; $view->description = 'Plan d\'action'; $view->tag = ''; $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', 'Paramètres par défaut', 'default'); $handler->override_option('relationships', array( 'field_action_assigne_uid' => array( 'label' => 'Assigné à', 'required' => 0, 'delta' => -1, 'id' => 'field_action_assigne_uid', 'table' => 'node_data_field_action_assigne', 'field' => 'field_action_assigne_uid', 'relationship' => 'none', ), 'field_action_etat_value' => array( 'label' => 'Terme Etat', 'required' => 0, 'id' => 'field_action_etat_value', 'table' => 'node_data_field_action_etat', 'field' => 'field_action_etat_value', 'relationship' => 'none', ), 'field_action_priorite_value' => array( 'label' => 'Terme Priorité', 'required' => 0, 'id' => 'field_action_priorite_value', 'table' => 'node_data_field_action_priorite', 'field' => 'field_action_priorite_value', 'relationship' => 'none', ), 'field_action_type_value' => array( 'label' => 'Terme Type', 'required' => 0, 'id' => 'field_action_type_value', 'table' => 'node_data_field_action_type', 'field' => 'field_action_type_value', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'created' => array( 'label' => 'Date', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'date_format' => 'custom', 'custom_date_format' => 'Y/m/d', 'exclude' => 0, 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', ), 'name_2' => array( 'label' => 'Type', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_taxonomy' => 0, 'exclude' => 0, 'id' => 'name_2', 'table' => 'term_data', 'field' => 'name', 'relationship' => 'field_action_type_value', ), 'title' => array( 'label' => 'Action (commentaires)', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', 'override' => array( 'button' => 'Supplanter', ), ), 'comment_count' => array( 'label' => 'Commentaires', 'alter' => array( 'alter_text' => 1, 'text' => '([comment_count])', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'set_precision' => FALSE, 'precision' => 0, 'decimal' => '.', 'separator' => ',', 'prefix' => '', 'suffix' => '', 'exclude' => 0, 'id' => 'comment_count', 'table' => 'node_comment_statistics', 'field' => 'comment_count', 'relationship' => 'none', 'override' => array( 'button' => 'Supplanter', ), ), 'timestamp' => array( 'label' => 'Nouveaux', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'comments' => 0, 'exclude' => 0, 'id' => 'timestamp', 'table' => 'history_user', 'field' => 'timestamp', 'relationship' => 'none', ), 'field_acion_objets_nid' => array( 'label' => 'Objets concernés', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'label_type' => 'widget', 'format' => 'default', 'multiple' => array( 'group' => 1, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => 0, ), 'exclude' => 0, 'id' => 'field_acion_objets_nid', 'table' => 'node_data_field_acion_objets', 'field' => 'field_acion_objets_nid', 'relationship' => 'none', ), 'realname' => array( 'label' => 'Assigné à', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'realname', 'table' => 'realname', 'field' => 'realname', 'relationship' => 'field_action_assigne_uid', ), 'name_1' => array( 'label' => 'Priorité', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_taxonomy' => 0, 'exclude' => 0, 'id' => 'name_1', 'table' => 'term_data', 'field' => 'name', 'relationship' => 'field_action_priorite_value', ), 'field_reunion_date_value2' => array( 'label' => 'Echéance', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'label_type' => 'custom', 'format' => 'short', 'multiple' => array( 'multiple_number' => '', 'multiple_from' => '', 'multiple_to' => '', 'group' => '', ), 'repeat' => array( 'show_repeat_rule' => '', ), 'fromto' => array( 'fromto' => 'value2', ), 'exclude' => 0, 'id' => 'field_reunion_date_value2', 'table' => 'node_data_field_reunion_date', 'field' => 'field_reunion_date_value2', 'relationship' => 'none', ), 'name' => array( 'label' => 'Etat', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_taxonomy' => 0, 'exclude' => 0, 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'relationship' => 'field_action_etat_value', ), 'nothing' => array( 'id' => 'nothing', 'table' => 'views', 'field' => 'nothing', ), )); $handler->override_option('sorts', array( 'name' => array( 'order' => 'ASC', 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'override' => array( 'button' => 'Supplanter', ), 'relationship' => 'field_action_etat_value', ), 'field_reunion_date_value2' => array( 'order' => 'ASC', 'delta' => -1, 'id' => 'field_reunion_date_value2', 'table' => 'node_data_field_reunion_date', 'field' => 'field_reunion_date_value2', 'override' => array( 'button' => 'Supplanter', ), 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'group_nid' => array( 'default_action' => 'default', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'Tous / Toutes', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'og_group_node', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'group_nid', 'table' => 'og_ancestry', 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '3' => 0, '4' => 0, '11' => 0, '10' => 0, '8' => 0, ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_fixed' => '', 'default_argument_user' => 0, 'default_argument_php' => '', 'validate_argument_node_type' => array( 'file' => 0, 'action' => 0, 'book' => 0, 'classe_objet' => 0, 'group' => 0, 'lieu' => 0, 'page' => 0, 'reunion' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '4' => 0, '3' => 0, '2' => 0, '1' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_is_member' => 'OG_VIEWS_DO_NOT_VALIDATE_MEMBERSHIP', 'validate_argument_group_node_type' => array( 'group' => 0, ), 'validate_argument_php' => '', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'action' => 'action', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('style_plugin', 'table_highlighter'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'created' => 'created', 'name_2' => 'name_2', 'title' => 'title', 'comment_count' => 'comment_count', 'timestamp' => 'timestamp', 'field_acion_objets_nid' => 'field_acion_objets_nid', 'realname' => 'realname', 'name_1' => 'name_1', 'field_reunion_date_value2' => 'field_reunion_date_value2', 'name' => 'name', ), 'info' => array( 'created' => array( 'sortable' => 1, 'separator' => '', ), 'name_2' => array( 'sortable' => 1, 'separator' => '', ), 'title' => array( 'sortable' => 1, 'separator' => '', ), 'comment_count' => array( 'sortable' => 1, 'separator' => '', ), 'timestamp' => array( 'separator' => '', ), 'field_acion_objets_nid' => array( 'separator' => '', ), 'realname' => array( 'sortable' => 1, 'separator' => '', ), 'name_1' => array( 'sortable' => 1, 'separator' => '', ), 'field_reunion_date_value2' => array( 'sortable' => 1, 'separator' => '', ), 'name' => array( 'sortable' => 1, 'separator' => '', ), ), 'default' => '-1', 'views_table_highlighter' => array( 'code' => 'if ($=="") return \'red\';', ), )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'node/%/actions'); $handler->override_option('menu', array( 'type' => 'tab', 'title' => 'Plan d\'action', 'description' => '', 'weight' => '0', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', ));