You are here

function me_me_uid_ctools_arguments in me aliases 6.2

Implementation of CTools hook_ctools_arguments().

See http://drupal.org/project/ctools for module and hook information.

File

plugins/me_uid.inc, line 14
Plugin to provide an argument handler for a user id which supports the me alias.

Code

function me_me_uid_ctools_arguments() {
  $args['me_uid'] = array(
    'title' => t("User ID (Me Supported)"),
    // keyword to use for %substitution
    'keyword' => 'user',
    'description' => t('Creates a user context from a user ID argument or the %me alias.', array(
      '%me' => _me_get_me_alias(TRUE),
    )),
    'context' => 'me_argument_uid_context',
    'placeholder form' => array(
      '#type' => 'textfield',
      '#description' => t('Enter the user ID of a user for this argument or the %me alias.', array(
        '%me' => _me_get_me_alias(TRUE),
      )),
    ),
  );
  return $args;
}