custom/menu_helper/menu_helper_blocks/menu_helper_blocks.module, line 595
_menu_helper_blocks_append_type_input(&$form, $node_type_options, $block_name)Appends to 'Content type' input to a form.
menu_helper_blocks_content_form()
@see menu_helper_blocks_book_form()$form An associative array containing the structure of the form.
$node_type_options A keyed array containing the permitted node types.
$block_name The name of block which is prefixed to all the input names
An associative array containing the structure of the form.
<?php
function _menu_helper_blocks_append_type_input(&$form, $node_type_options, $block_name) {
// Node type
$form[$block_name .'_type'] = array(
'#type' => 'select',
'#title' => t('Content type'),
'#options' => $node_type_options,
'#default_value' => $_SESSION[$block_name .'_type'],
'#required' => TRUE,
);
}
?>