/** * This function is in charge of the logic for * showing whatever it is we want to show a user * about whether they have verified their api * key or not. */ public static function draw_verify_api_key() { if (!ShareaholicUtilities::api_key_verified()) { print theme('shareaholic_verify_api_key'); } }
/** * This function is in charge the logic for * showing whatever it is we want to show a user * about whether they have verified their api * key or not. */ private static function draw_verify_api_key() { if (!ShareaholicUtilities::api_key_verified()) { $settings = ShareaholicUtilities::get_settings(); $api_key = $settings['api_key']; $verification_key = $settings['verification_key']; ShareaholicUtilities::load_template('verify_api_key_js', array('verification_key' => $verification_key)); } }