jdrupal.module in jDrupal 7
Same filename and directory in other branches
The comanion module for the jDrupal JavaScript Library for Drupal.
File
jdrupal.moduleView 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
Name | Description |
---|---|
jdrupal_ctools_plugin_api | Implements hook_ctools_plugin_api(). |
jdrupal_help | Implements hook_help(). |
jdrupal_permission | Implements hook_permission(). |