You are here

function timeago_variable_info in Timeago 7.2

Implements hook_variable_info().

File

./timeago.module, line 420
Adds support for the Timeago jQuery library.

Code

function timeago_variable_info($options) {
  $settings_vars = timeago_get_settings_variables();
  $variables = array();
  foreach ($settings_vars as $js_var => $variable) {
    $variables[$variable['variable_name']] = array(
      'title' => t('Timeago JavaScript setting for "@title"', array(
        '@title' => $variable['title'],
      ), $options),
      'type' => 'string',
      'default' => $variable['default'],
    );
  }
  return $variables;
}