function activity_enabled_languages in Activity 6.2
Same name and namespace in other branches
- 7 activity.module \activity_enabled_languages()
helper function to get the enabled languages
Return value
array array with the keys as the short id of the language (i.e. en)
3 calls to activity_enabled_languages()
- activity_form_submit in ./
activity.admin.inc - Form submit controller.
- activity_record in ./
activity.module - Implementation of a configurable Drupal action. Tokenize and record an activity message.
- _activity_settings_form_messages in ./
activity.admin.inc - Show the text boxes according to the _triggers and _ops steps.
File
- ./
activity.module, line 888 - Primarily Drupal hooks and global API functions to manipulate activity.
Code
function activity_enabled_languages() {
$languages = language_list('enabled');
return $languages[1];
}