Go to the source code of this file.
Functions | |
| panels_admin_content_types_user_picture () | |
| panels_admin_title_user_picture ($conf, $context) | |
| panels_content_user_picture ($conf, $panel_args, $context) | |
| panels_user_picture_panels_content_types () | |
| panels_admin_content_types_user_picture | ( | ) |
Return all content types available.
Definition at line 41 of file user_picture.inc.
References panels_get_path().
00041 { 00042 return array( 00043 'description' => array( 00044 'title' => t('User picture'), 00045 'icon' => 'icon_user.png', 00046 'path' => panels_get_path('content_types/user'), 00047 'description' => t('The picture of a user.'), 00048 'required context' => new panels_required_context(t('User'), 'user'), 00049 'category' => array(t('User context'), -9), 00050 ), 00051 ); 00052 }
| panels_admin_title_user_picture | ( | $ | conf, | |
| $ | context | |||
| ) |
Display the administrative title for a panel pane in the drag & drop UI
Definition at line 57 of file user_picture.inc.
| panels_content_user_picture | ( | $ | conf, | |
| $ | panel_args, | |||
| $ | context | |||
| ) |
Output function for the 'node' content type. Outputs a node based on the module and delta supplied in the configuration.
Definition at line 23 of file user_picture.inc.
00023 { 00024 $account = isset($context->data) ? drupal_clone($context->data) : NULL; 00025 $block = new stdClass(); 00026 $block->module = 'term-list'; 00027 00028 if ($account === FALSE || ($account->access == 0 && !user_access('administer users'))) { 00029 return drupal_not_found(); 00030 } 00031 00032 $block->title = check_plain($account->name); 00033 $block->content = theme('user_picture', $account); 00034 00035 return $block; 00036 }
| panels_user_picture_panels_content_types | ( | ) |
Callback function to supply a list of content types.
Definition at line 8 of file user_picture.inc.
00008 { 00009 $items['user_picture'] = array( 00010 'title' => t('User picture'), 00011 'content_types' => 'panels_admin_content_types_user_picture', 00012 'single' => TRUE, 00013 'render callback' => 'panels_content_user_picture', 00014 'title callback' => 'panels_admin_title_user_picture', 00015 ); 00016 return $items; 00017 }
1.5.6