function ctools_user_form_timezone_content_type_render
Ctools plugin content type render for the timezone form field.
File
-
plugins/
content_types/ user_form/ user_form_timezone.inc, line 19
Code
function ctools_user_form_timezone_content_type_render($subtype, $conf, $panel_args, &$context) {
$block = new stdClass();
$block->module = t('user-form');
$block->delta = 'title-options';
if (isset($context->form)) {
if (!empty($context->form['timezone'])) {
$block->content['timezone'] = $context->form['timezone'];
unset($context->form['timezone']);
}
}
else {
$block->content = t('User timezone form.');
}
return $block;
}