function nodequeue_views_arguments in Nodequeue 5.2
Same name and namespace in other branches
- 5 nodequeue.module \nodequeue_views_arguments()
File
- ./
nodequeue.views.inc, line 167 - nodequeue.views.inc Provides support for the Views module.
Code
function nodequeue_views_arguments() {
$arguments = array(
'nodequeue_qid' => array(
'name' => t("NodeQueue: Queue ID"),
'handler' => "nodequeue_handler_arg_qid",
'help' => t('The Queue ID argument allows users to filter a view by specifying a Node Queue ID. This is only valid for simple nodequeues with just one subqueue. You should not use this argument if you have queues with subqueues.'),
),
'nodequeue_qtitle' => array(
'name' => t("NodeQueue: Subqueue title"),
'handler' => "nodequeue_handler_arg_qtitle",
'option' => array(
'#type' => 'select',
'#options' => 'nodequeue_handler_queuelist',
'#all_ok' => TRUE,
),
'help' => t('The Queue Title argument allows users to filter a view by specifying a Subqueue Title. Use the Option to restrict this to just one queue.'),
),
'nodequeue_pos' => array(
'name' => t("NodeQueue: Position in queue"),
'handler' => "nodequeue_handler_arg_pos",
'help' => t('Filter by the position of the node in the queue'),
),
"nodequeue_sqid" => array(
'name' => t("NodeQueue: Subqueue ID"),
'handler' => "nodequeue_handler_arg_sqid",
'operator' => 'views_handler_operator_andor',
'option' => array(
'#type' => 'select',
'#options' => 'nodequeue_handler_queuelist',
'#all_ok' => TRUE,
),
'help' => t('Filter the view to a specific Sub Queue.'),
),
"nodequeue_reference" => array(
'name' => t("NodeQueue: Subqueue reference"),
'handler' => "nodequeue_handler_arg_reference",
'operator' => 'views_handler_operator_andor',
'option' => array(
'#type' => 'select',
'#options' => 'nodequeue_handler_queuelist',
'#any_ok' => TRUE,
),
'help' => t('Filter the view to a specific Sub Queue. The subqueue reference is the ID that the subqueue is attached to; tax id for taxonomy or user id for user queues, etc.'),
),
);
return $arguments;
}