You are here

function nodereferrer_views_arguments in NodeReferrer 5

Implementation of hook_views_arguments().

File

./nodereferrer.module, line 426
Defines a field type for backlinking referencing nodes. @todo -clear content cache with nodeapi. -query nids for access on load/view..

Code

function nodereferrer_views_arguments() {
  $arguments = array(
    'nodereferrer_by_field' => array(
      'name' => t('NodeReference Field References: ID'),
      'handler' => t('nodereferrer_view_handler_argument_field'),
      'option' => array(
        '#type' => 'select',
        '#options' => nodereferrer_nodereference_field_options(),
      ),
      'help' => t('This argument allows views to query the nodes that refer a certain node reference by field.
        Specify referencing field In the options.'),
    ),
    'nodereferrer_by_type' => array(
      'name' => t('Node Type References: ID'),
      'handler' => t('nodereferrer_view_handler_argument_type'),
      'option' => array(
        '#type' => 'select',
        '#options' => node_get_types('names'),
      ),
      'help' => t('This argument allows views to query the nodes that refer to a certain node reference by node type.
        Specify node type in the options field.'),
    ),
  );
  return $arguments;
}