You are here

function book_copy_outline_designer_operations_alter in Book Copy 7

Same name and namespace in other branches
  1. 7.2 book_copy.module \book_copy_outline_designer_operations_alter()

Implements hook_outline_designer_operations_alter().

File

./book_copy.module, line 332

Code

function book_copy_outline_designer_operations_alter(&$ops, $type) {

  // seems silly but this way other hooked in actions are last
  switch ($type) {
    case 'book':
      $icon_path = drupal_get_path('module', 'book_copy') . '/images/';
      $book_copy_ops = array(
        'book_copy' => array(
          'title' => t('Copy content'),
          'icon' => $icon_path . 'book_copy.png',
          'callback' => 'book_copy_book_process_book_copy',
        ),
      );
      $ops = array_merge($ops, $book_copy_ops);
      break;
  }
}