You are here

commons_follow_plugin_argument_default_node.inc in Drupal Commons 7.3

Holds the class defining the Views plugin that returns the node IDS that a user has subscribed to.

File

modules/commons/commons_follow/includes/views/handlers/commons_follow_plugin_argument_default_node.inc
View source
<?php

/**
 * @file
 * Holds the class defining the Views plugin that returns the node IDS that a
 * user has subscribed to.
 */
class commons_follow_plugin_argument_default_node extends views_plugin_argument_default {

  /**
   * Get the default argument.
   */
  function get_argument() {
    if (!($nids = commons_follow_get_nids())) {
      return FALSE;
    }
    return implode(',', $nids);
  }

}

Classes

Namesort descending Description
commons_follow_plugin_argument_default_node @file Holds the class defining the Views plugin that returns the node IDS that a user has subscribed to.