You are here

jdrupal.module in jDrupal 7

Same filename and directory in other branches
  1. 8 jdrupal.module
  2. 8.0.x jdrupal.module

The comanion module for the jDrupal JavaScript Library for Drupal.

File

jdrupal.module
View source
<?php

/**
 * @file
 * The comanion module for the jDrupal JavaScript Library for Drupal.
 */

/**
 * Implements hook_help().
 */
function jdrupal_help($path, $arg) {
  switch ($path) {
    case 'admin/help#jdrupal':

      // Show documentation URL.
      $doc_msg = t('The <a href="@doc_url">jDrupal Documentation</a> contains more info.', array(
        '@doc_url' => 'http://www.easystreet3.com/jDrupal',
      ));
      return "<p>{$doc_msg}</p>";
      break;
  }
}

/**
 * Implements hook_permission().
 */
function jdrupal_permission() {
  return array(
    'administer jdrupal' => array(
      'title' => t('Administer jdrupal'),
      'description' => t('Perform administration tasks for jdrupal.'),
    ),
    'jdrupal get vocabularies' => array(
      'title' => t('Get Vocabularies'),
      'description' => t('Retrieve basic data about vocabularies.'),
    ),
    'jdrupal get terms' => array(
      'title' => t('Get Terms'),
      'description' => t('Retrieve basic data about vocabularies terms.'),
    ),
  );
}

/**
 * Implements hook_ctools_plugin_api().
 */
function jdrupal_ctools_plugin_api($owner, $api) {
  if ($owner == 'services' && $api == 'services') {
    return array(
      'version' => 3,
      'file' => 'jdrupal.services.inc',
    );
  }
}

Functions