You are here

function domain_content_node_operations in Domain Access 6.2

Same name and namespace in other branches
  1. 5 domain_content/domain_content.module \domain_content_node_operations()
  2. 7.3 domain_content/domain_content.module \domain_content_node_operations()
  3. 7.2 domain_content/domain_content.module \domain_content_node_operations()

Implement hook_node_operations()

File

domain_content/domain_content.module, line 158
Editorial overview module.

Code

function domain_content_node_operations() {

  // Only privileged users can perform this operation.
  // Do not show this on the default node editing form.
  if (user_access('set domain access')) {
    $operations = array(
      'domain' => array(
        'label' => t('Change affiliate publishing options'),
        'callback' => 'domain_content_node_operations_process',
        'configurable' => TRUE,
      ),
    );
    return $operations;
  }
}