You are here

function domain_content_node_operations in Domain Access 5

Same name and namespace in other branches
  1. 6.2 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 406
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 (arg(0) == 'admin' && arg(1) == 'domain' && user_access('set domain access')) {
    $operations = array(
      'domain' => array(
        'label' => t('Change affiliate publishing options'),
        'callback' => 'domain_content_node_operations_access',
      ),
    );
    return $operations;
  }
}