function node_deploy_node_operations in Deploy - Content Staging 6
Implementation of hook_node_operations().
Opens up bulk node deployments in admin/content.
File
- modules/
node_deploy/ node_deploy.module, line 267 - Deployment API which enables modules to deploy items between servers.
Code
function node_deploy_node_operations() {
$operations = array(
'deploy_now' => array(
'label' => t('Deploy'),
'callback' => 'node_deploy_operations_deploy_now',
),
);
// If there are any plans created, add the 'add to plan' operation
$plans = deploy_get_plans();
if (!empty($plans)) {
$operations['deploy'] = array(
'label' => t('Add to deployment plan'),
'callback' => 'node_deploy_operations_deploy',
);
}
return $operations;
}