' . t('About') . ''; $output .= '

' . t("The AddThis module defines AddThis field type for the Field module. A AddThis field may contain a button, toolbox, sharecount or customized sharing tool using AddThis.com.") . '

'; return $output; } } /** * Implements hook_filter_format_update(). */ function addthis_filter_format_update($format) { field_cache_clear(); } /** * Implements hook_filter_format_disable(). */ function addthis_filter_format_disable($format) { field_cache_clear(); } /** * Implements hook_menu(). */ function addthis_menu() { $menuItems['admin/config/system/addthis'] = array( 'title' => 'AddThis', 'description' => 'Configure AddThis settings.', 'page callback' => 'drupal_get_form', 'page arguments' => array('addthis_admin_settings_form'), 'access arguments' => array(AddThis::PERMISSION_ADMINISTER_ADDTHIS), 'type' => MENU_NORMAL_ITEM, 'file' => AddThis::ADMIN_INCLUDE_FILE, ); return $menuItems; } /** * Implements hook_permission(). */ function addthis_permission() { return array( AddThis::PERMISSION_ADMINISTER_ADDTHIS => array( 'title' => t('Administer AddThis'), 'description' => t('Perform maintenance tasks for AddThis.'), ), AddThis::PERMISSION_ADMINISTER_ADVANCED_ADDTHIS => array( 'title' => t('Administer advanced AddThis'), 'description' => t('Perform advanced maintenance tasks for AddThis.'), ), ); } /** * Implements hook_page_alter(). */ function addthis_page_alter(&$page) { AddThis::getInstance()->addWidgetJs(); AddThis::getInstance()->addConfigurationOptionsJs(); }