$view = new view; $view->name = 'flag_inapropriado_justificativa'; $view->description = ''; $view->tag = 'flag.abuse'; $view->view_php = ''; $view->base_table = 'comments'; $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', 'Formato inicial (padrão)', 'default'); $handler->override_option('relationships', array( 'flag_note_comments_rel' => array( 'label' => 'Flag note on comment', 'required' => 1, 'flag' => 'abuse_comment', 'user_scope' => 'any', 'id' => 'flag_note_comments_rel', 'table' => 'comments', 'field' => 'flag_note_comments_rel', 'relationship' => 'none', ), 'flag_note_author_rel' => array( 'label' => 'flag_note_author', 'required' => 1, 'id' => 'flag_note_author_rel', 'table' => 'flag_note', 'field' => 'flag_note_author_rel', 'relationship' => 'flag_note_comments_rel', ), 'flag_note_content_rel' => array( 'label' => 'flag_note_conent', 'required' => 1, 'id' => 'flag_note_content_rel', 'table' => 'flag_note', 'field' => 'flag_note_content_rel', 'relationship' => 'flag_note_comments_rel', 'override' => array( 'button' => 'Sobrescrever', ), ), )); $handler->override_option('fields', array( 'note' => array( 'label' => 'Justificativa', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 1, 'max_length' => '100', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 1, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'exclude' => 0, 'id' => 'note', 'table' => 'flag_note', 'field' => 'note', 'relationship' => 'flag_note_comments_rel', ), 'timestamp' => array( 'label' => 'Reportado em:', 'alter' => array( 'alter_text' => 1, 'text' => '[timestamp]', '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' => 'small', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'timestamp', 'table' => 'flag_note', 'field' => 'timestamp', 'relationship' => 'flag_note_comments_rel', ), 'value' => array( 'label' => 'Autor', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 1, 'max_length' => '17', 'word_boundary' => 0, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_user' => 1, 'exclude' => 0, 'id' => 'value', 'table' => 'profile_values_profile_nome', 'field' => 'value', 'relationship' => 'flag_note_author_rel', ), 'fnid' => array( 'label' => 'ID da nota', '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, 'exclude' => 1, 'id' => 'fnid', 'table' => 'flag_note', 'field' => 'fnid', 'relationship' => 'flag_note_comments_rel', ), 'edit_note' => array( 'label' => 'Operações', 'alter' => array( 'alter_text' => 1, 'text' => 'Editar', '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, 'text' => 'editar', 'exclude' => 0, 'id' => 'edit_note', 'table' => 'flag_note', 'field' => 'edit_note', 'relationship' => 'flag_note_comments_rel', ), 'delete_note' => array( 'label' => 'Excluir', 'alter' => array( 'alter_text' => 1, 'text' => 'Editar', '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, 'text' => '', 'exclude' => 0, 'id' => 'delete_note', 'table' => 'flag_note', 'field' => 'delete_note', 'relationship' => 'flag_note_comments_rel', ), 'subject' => array( 'label' => 'Comentário marcado', '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_comment' => 1, 'exclude' => 0, 'id' => 'subject', 'table' => 'comments', 'field' => 'subject', 'relationship' => 'none', ), 'comment' => array( 'label' => 'Corpo', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 1, 'max_length' => '100', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 1, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'exclude' => 0, 'id' => 'comment', 'table' => 'comments', 'field' => 'comment', 'relationship' => 'none', ), 'name' => array( 'label' => 'Autor', '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, 'exclude' => 0, 'id' => 'name', 'table' => 'comments', 'field' => 'name', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'value' => array( 'operator' => 'allwords', 'value' => '', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'value_op', 'identifier' => 'autor_marca', 'label' => 'Reportado por (ex: "joão da silva", "silva")', 'optional' => 1, 'remember' => 0, ), 'case' => 1, 'id' => 'value', 'table' => 'profile_values_profile_nome', 'field' => 'value', 'relationship' => 'flag_note_author_rel', ), 'name' => array( 'operator' => 'allwords', 'value' => '', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'name_op', 'identifier' => 'name', 'label' => 'Autor do comentário (ex: "joão da silva", "silva")', 'optional' => 1, 'remember' => 0, ), 'case' => 1, 'id' => 'name', 'table' => 'comments', 'field' => 'name', 'relationship' => 'none', ), 'subject' => array( 'operator' => 'allwords', 'value' => '', 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'subject_op', 'identifier' => 'titulo', 'label' => 'Título (ex: "concordo", "não concordo com")', 'optional' => 1, 'remember' => 0, ), 'case' => 1, 'id' => 'subject', 'table' => 'comments', 'field' => 'subject', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'perm', 'perm' => 'administer comments', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Justificativas para conteúdos com marcas.'); $handler->override_option('header', 'pager[\'items_per_page\']; if ($pager_total[0] == 1) { echo t(\'Showing !pager_total_items results\', array(\'!pager_total_items\' => $pager_total_items[0]) ); } else { $start = 1 + ($pager_page_array[0] * $items_per_page); $end = (1 + $pager_page_array[0]) * $items_per_page; if ($end > $pager_total_items[0]) $end = $pager_total_items[0]; echo t(\'Showing !start - !end of !pager_total_items results\', array(\'!start\' => $start, \'!end\' => $end, \'!pager_total_items\' => $pager_total_items[0]) ); } ?>'); $handler->override_option('header_format', '3'); $handler->override_option('header_empty', 0); $handler->override_option('items_per_page', 25); $handler->override_option('use_pager', '1'); $handler->override_option('distinct', 0); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 1, 'order' => 'desc', 'columns' => array( 'timestamp' => 'timestamp', 'value' => 'value', 'note' => 'note', 'fnid' => 'fnid', 'edit_note' => 'edit_note', 'delete_note' => 'delete_note', 'subject' => 'subject', 'comment' => 'subject', 'name' => 'name', ), 'info' => array( 'timestamp' => array( 'sortable' => 1, 'separator' => '', ), 'value' => array( 'sortable' => 1, 'separator' => '', ), 'note' => array( 'sortable' => 1, 'separator' => '', ), 'fnid' => array( 'sortable' => 0, 'separator' => '', ), 'edit_note' => array( 'separator' => '', ), 'delete_note' => array( 'separator' => '', ), 'subject' => array( 'sortable' => 1, 'separator' => '
', ), 'comment' => array( 'separator' => '', ), 'name' => array( 'sortable' => 1, 'separator' => '', ), ), 'default' => 'timestamp', )); $handler = $view->new_display('page', 'Página: com marcas', 'page_1'); $handler->override_option('path', 'admin/content/inapropriado/justificativa'); $handler->override_option('menu', array( 'type' => 'tab', 'title' => 'Justificativa', 'description' => '', 'weight' => '0', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'normal', 'title' => '', 'description' => '', 'weight' => '0', 'name' => 'navigation', )); $handler = $view->new_display('page', 'Página', 'page_2'); $handler->override_option('path', 'admin/content/inapropriado/justificativa/marcados'); $handler->override_option('menu', array( 'type' => 'default tab', 'title' => 'Marcados', 'description' => '', 'weight' => '-1', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => 'Justificativa', 'description' => '', 'weight' => '0', 'name' => 'navigation', )); $handler = $view->new_display('page', 'Página', 'page_3'); $handler->override_option('relationships', array( 'flag_note_comments_rel' => array( 'label' => 'Flag note on comment', 'required' => 1, 'flag' => 'abuse_comment', 'user_scope' => 'any', 'id' => 'flag_note_comments_rel', 'table' => 'comments', 'field' => 'flag_note_comments_rel', 'relationship' => 'none', ), 'flag_note_author_rel' => array( 'label' => 'flag_note_author', 'required' => 1, 'id' => 'flag_note_author_rel', 'table' => 'flag_note', 'field' => 'flag_note_author_rel', 'relationship' => 'flag_note_comments_rel', ), )); $handler->override_option('title', 'Justificativas para conteúdos com e sem marcas.'); $handler->override_option('path', 'admin/content/inapropriado/justificativa/historico'); $handler->override_option('menu', array( 'type' => 'tab', 'title' => 'Histórico', 'description' => '', 'weight' => '0', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'normal', 'title' => '', 'description' => '', 'weight' => '0', 'name' => 'navigation', ));