function ctools_user_form_notify_content_type_render

Ctools plugin content type render for the notify form field.

File

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

Code

function ctools_user_form_notify_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['account']['notify'])) {
            $block->content['notify'] = $context->form['account']['notify'];
            unset($context->form['account']['notify']);
        }
    }
    else {
        $block->content = t('User notify form.');
    }
    return $block;
}