function messaging_template_element_info in Messaging 7
Implements hook_element_info()
File
- messaging_template/
messaging_template.module, line 11 - Messaging Template Drupal Messaging Framework
Code
function messaging_template_element_info() {
$types['messaging_template_text'] = array(
'#theme' => 'messaging_template_text',
'#options' => array(),
'#format' => MESSAGING_FORMAT,
'#markup' => '',
'#pre_render' => array(
'messaging_template_pre_render_text',
),
'#post_render' => array(
'messaging_template_post_render_text',
),
);
$types['messaging_template_subject'] = array(
'#markup' => '',
'#separator' => ' ',
'#plaintext' => TRUE,
// This element can render itself as plain text
'#theme' => 'messaging_template_subject',
'#pre_render' => array(
'drupal_pre_render_markup',
),
'#post_render' => array(
'messaging_template_post_render_text',
),
);
$types['messaging_template_body'] = array(
'#theme' => 'messaging_template_body',
'#pre_render' => array(
'messaging_template_pre_render_body',
),
);
$types['messaging_link'] = array(
'#plaintext' => TRUE,
// This element can render itself as plain text
'#options' => array(),
'#pre_render' => array(
'messaging_template_pre_render_link',
'drupal_pre_render_markup',
),
);
$types['messaging_list'] = array(
'#theme' => 'item_list',
'#title' => '',
'#options' => array(),
'#pre_render' => array(
'messaging_template_pre_render_list',
),
);
return $types;
}