function slickgrid_entity_info_alter in Slickgrid 7
Implements hook_entity_info_alter(). Add metadata so we know what to call to get the add entity form
File
- ./
slickgrid.module, line 205
Code
function slickgrid_entity_info_alter(&$entity_info) {
// foreach node bundle create an add callback
$file = DRUPAL_ROOT . '/' . drupal_get_path('module', 'node') . "/node.pages.inc";
foreach ($entity_info['node']['bundles'] as $type => $bundle) {
$entity_info['node']['bundles'][$type]['add'] = array(
'callback' => $type . '_node_form',
'file' => $file,
);
}
}