Definition in file uid.inc.
Go to the source code of this file.
Functions | |
| panels_uid_choose_display ($conf, $context) | |
| panels_uid_context ($arg=NULL, $conf=NULL, $empty=FALSE) | |
| panels_uid_displays ($conf, $id) | |
| panels_uid_panels_arguments () | |
| panels_uid_settings_form ($conf) | |
| panels_uid_settings_form_submit (&$values) | |
| panels_uid_choose_display | ( | $ | conf, | |
| $ | context | |||
| ) |
| panels_uid_context | ( | $ | arg = NULL, |
|
| $ | conf = NULL, |
|||
| $ | empty = FALSE | |||
| ) |
Discover if this argument gives us the user we crave.
Definition at line 28 of file uid.inc.
References panels_context_create(), and panels_context_create_empty().
00028 { 00029 // If unset it wants a generic, unfilled context. 00030 if ($empty) { 00031 return panels_context_create_empty('user'); 00032 } 00033 00034 if (!is_numeric($arg)) { 00035 return FALSE; 00036 } 00037 00038 $user = user_load(array('uid' => $arg)); 00039 if (!$user) { 00040 return FALSE; 00041 } 00042 00043 return panels_context_create('user', $user); 00044 }
| panels_uid_displays | ( | $ | conf, | |
| $ | id | |||
| ) |
| panels_uid_panels_arguments | ( | ) |
Definition at line 10 of file uid.inc.
00010 { 00011 $args['uid'] = array( 00012 'title' => t("User ID"), 00013 // keyword to use for %substitution 00014 'keyword' => 'user', 00015 'description' => t('Creates a user object from the argument.'), 00016 'context' => 'panels_uid_context', 00017 'settings form' => 'panels_uid_settings_form', 00018 'settings form submit' => 'panels_uid_settings_form_submit', 00019 'displays' => 'panels_uid_displays', 00020 'choose display' => 'panels_uid_choose_display', 00021 ); 00022 return $args; 00023 }
| panels_uid_settings_form | ( | $ | conf | ) |
| panels_uid_settings_form_submit | ( | &$ | values | ) |
1.5.6