You are here

function command_buttons_entities_add_page in Command Buttons 7

Page callback to add a new pane entity.

1 string reference to 'command_buttons_entities_add_page'
command_buttons_menu in ./command_buttons.module
Implements hook_menu().

File

./command_buttons.admin.inc, line 63

Code

function command_buttons_entities_add_page($type) {
  $form_state = array(
    'entity' => command_buttons_create(array(
      'bundle' => $type,
    )),
    'add submit' => TRUE,
  );

  // Default these to reusable.
  $form_state['entity']->reusable = TRUE;
  return drupal_build_form('command_buttons_entity_edit_form', $form_state);
}