You are here

function easy_social_variable_info in Easy Social 7

Same name and namespace in other branches
  1. 7.2 easy_social.module \easy_social_variable_info()

Implements hook_variable_info().

File

./easy_social.module, line 54
This is the file description for Easy Social module.

Code

function easy_social_variable_info() {
  $variables['easysocial_ignore_paths'] = array(
    'title' => t('Easy Social Global Ignore Paths'),
    'default' => '',
    'group' => 'easysocial',
    'token' => FALSE,
  );
  $variables['easysocial_global_typebtn'] = array(
    'title' => t('Easy Social Global Type of Buttons'),
    'default' => 0,
    'group' => 'easysocial',
    'token' => FALSE,
  );
  $variables['easysocial_global_social_buttons'] = array(
    'title' => t('Easy Social Global Type of Network Buttons'),
    'default' => array(
      'twitter',
      'facebook',
      'googleplus',
      'linkedin',
    ),
    'group' => 'easysocial',
    'token' => FALSE,
  );
  $variables['easysocial_tt_global_account_via'] = array(
    'title' => t('Easy Social Global Mention Account'),
    'default' => '',
    'group' => 'easysocial',
    'token' => FALSE,
  );
  $variables['easysocial_tt_global_account_related'] = array(
    'title' => t('Easy Social Global Related Account'),
    'default' => '',
    'group' => 'easysocial',
    'token' => FALSE,
  );
  $variables['easysocial_tt_global_account_description'] = array(
    'title' => t('Easy Social Global Twitter Description'),
    'default' => 'Check it out: !title',
    'group' => 'easysocial',
    'token' => FALSE,
  );
  $node_types = node_type_get_types();
  foreach ($node_types as $type => $typeobj) {
    $variables['easysocial_' . $type . '_override'] = array(
      'title' => t('Easy Social Override Option for type %type', array(
        '%type' => $typeobj->name,
      )),
      'default' => -1,
      'group' => 'easysocial',
      'token' => FALSE,
    );
    $variables['easysocial_' . $type . '_typebtn'] = array(
      'title' => t('Easy Social Type of Buttons for %type', array(
        '%type' => $typeobj->name,
      )),
      'default' => -1,
      'group' => 'easysocial',
      'token' => FALSE,
    );
    $variables['easysocial_' . $type . '_social_buttons'] = array(
      'title' => t('Easy Social Network Buttons for %type', array(
        '%type' => $typeobj->name,
      )),
      'default' => array(),
      'group' => 'easysocial',
      'token' => FALSE,
    );
  }
  return $variables;
}