You are here

function command_buttons_create in Command Buttons 7

Callback to create a new entity.

2 calls to command_buttons_create()
command_buttons_create_node_button in ./command_buttons.module
Create a node add button based on the node type and label.
command_buttons_entities_add_page in ./command_buttons.admin.inc
Page callback to add a new pane entity.
1 string reference to 'command_buttons_create'
command_buttons_entity_info in ./command_buttons.module
Impliments hook_crud_hook_entity_info().

File

./command_buttons.module, line 449

Code

function command_buttons_create($values = array()) {
  return entity_get_controller('command_button')
    ->create($values);
}