You are here

public static function ShareaholicUtilities::get_option in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3

Same name and namespace in other branches
  1. 8 utilities.php \ShareaholicUtilities::get_option()

Wrapper for wordpress's get_option: for Drupal

Parameters

string $option:

Return value

mixed

15 calls to ShareaholicUtilities::get_option()
ShareaholicAdmin::draw_modal_popup in ./admin.php
Outputs the actual html for either the terms_of_service modal or the failed_create_api_key modal depending on what is in the database
ShareaholicAdmin::update_check in ./admin.php
Sends an event when the user has updated the Drupal module
ShareaholicPublic::insert_content_meta_tags in ./public.php
Inserts the shareaholic content meta tags on the page On all pages, it will insert the standard content meta tags On full post pages, it will insert page specific content meta tags
ShareaholicPublic::insert_og_tags in ./public.php
Insert the Open Graph Tags
ShareaholicPublic::js_snippet in ./public.php
The actual text for the JS snippet because drupal doesn't seem to be able to add JS from template like Wordpress does... Using heredocs for now

... See full list

File

./utilities.php, line 66

Class

ShareaholicUtilities

Code

public static function get_option($option) {
  $settings = self::get_settings();
  return isset($settings[$option]) ? $settings[$option] : array();
}