You are here

function disable_breadcrumbs_node_operations in Disable breadcrumbs 7

Same name and namespace in other branches
  1. 6 disable_breadcrumbs.module \disable_breadcrumbs_node_operations()

Implements hook_node_operations().

File

./disable_breadcrumbs.module, line 252
Disable breadcrumbs

Code

function disable_breadcrumbs_node_operations() {
  $operations = array();
  if (_disable_breadcrumbs_access(TRUE)) {
    $operations = array(
      'disable_breadcrumbs' => array(
        'label' => t("Disable breadcrumbs on selected nodes"),
        'callback' => 'disable_breadcrumbs_operations',
        'callback arguments' => array(
          'action' => 'disable_breadcrumbs',
        ),
      ),
      'enable_breadcrumbs' => array(
        'label' => t("Enable breadcrumbs on selected nodes"),
        'callback' => 'disable_breadcrumbs_operations',
        'callback arguments' => array(
          'action' => 'enable_breadcrumbs',
        ),
      ),
    );
  }
  return $operations;
}