t("User"), 'description' => t('A single user object.'), 'context' => 'panels_context_create_user', 'settings form' => 'panels_context_user_settings_form', 'settings form validate' => 'panels_context_user_settings_form_validate', 'keyword' => 'user', 'no ui' => TRUE, 'context name' => 'user', ); return $args; } /** * It's important to remember that $conf is optional here, because contexts * are not always created from the UI. */ function panels_context_create_user($empty, $data = NULL, $conf = FALSE) { $context = new panels_context('user'); $context->plugin = 'user'; if ($empty) { return $context; } if ($conf) { $data = user_load(array('uid' => $data['uid'])); } if (!empty($data)) { $context->data = $data; $context->title = $data->name; $context->argument = $data->uid; return $context; } } function panels_context_user_settings_form($conf, $external = FALSE) { $options = array(); return $form; }