configuration page.', array('!url' => url('admin/build/views'))); } } function easylink_menu($may_cache) { $items = array(); if ($may_cache) { $items[] = array( 'path' => 'easylink/load', 'title' => t('EasyLink'), 'callback' => 'easylink_loader', 'access' => user_access('access tinymce'), 'type' => MENU_CALLBACK); $items[] = array( 'path' => 'admin/settings/easylink', 'title' => t('EasyLink'), 'callback' => 'drupal_get_form', 'callback arguments' => array('easylink_admin_settings'), 'access' => user_access('administer tinymce'), 'description' => t('Change the view Easylink uses to display nodes to the user'), 'type' => MENU_NORMAL_ITEM); } else { $path = drupal_get_path('module', 'easylink'); // the base url here is used for popup windows $js_base_url = "\n\n"; drupal_set_html_head($js_base_url); } return $items; } /** * Print the main easylink interface */ function easylink_loader() { $editor = arg(2) ? arg(2) : 'textarea'; $title = t('EasyLink'); $bp = base_path(); $output = '' . "\n"; $output .= '' . "\n"; $output .= "
\n"; $output .= "