Tag Archive: Drupal

For variables in your codes:
Step 1:

/**
* Implementation of hook_locale().
*/
function casetracker_locale($op = ‘groups’) {
switch ($op) {
case ‘groups’:
return array(‘case_tracker’ => t(‘Case Tracker’));
}
}

Setp 2:
if(module_exists(‘i18nstrings’)) {
$options[$state->csid] = tt(‘case_tracker:state:’. $state->csid .’:options’, $state->name, NULL, 1);
}
else
{ … }

Cron Permission Of Drupal

Drupal cron has no permission to do node save and anything related to permission.
But we should not hack the core to remove the permission feature of cron, because the index module aquire this feature.
How to call api related to permission?
Just give the cron some permission in your functions.

See http://drupal.org/node/494810