You are here

function multiselect_nodeapi in Multiselect 5

Same name and namespace in other branches
  1. 5.2 multiselect.module \multiselect_nodeapi()

Implementation of hook_nodeapi. @todo The adding of javascript can be moved to the _widget function.

File

./multiselect.module, line 187
Allows users to select multiple items in an easier way than the normal node-reference widget

Code

function multiselect_nodeapi(&$node, $op, $teaser, $page) {
  switch ($op) {
    case 'prepare':
      $path = drupal_get_path('module', 'multiselect');
      drupal_add_js($path . '/multiselect.js');
  }
}