function ctools_user_form_component_content_type_render

Ctools plugin content type render for the picture form field.

File

plugins/content_types/user_form/user_form_component.inc, line 19

Code

function ctools_user_form_component_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[$conf['field']])) {
            $block->content[$conf['field']] = $context->form[$conf['field']];
            unset($context->form[$conf['field']]);
        }
    }
    else {
        $block->content = t('User form edit components.');
    }
    return $block;
}