You are here

commons_follow_plugin_argument_default_message.inc in Drupal Commons 7.3

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

File

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

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

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

}

Classes

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