You are here

public static function ShareaholicAdmin::show_pending_update_notice in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3

Same name and namespace in other branches
  1. 8 admin.php \ShareaholicAdmin::show_pending_update_notice()

Show the pending update notice on admin pages

1 call to ShareaholicAdmin::show_pending_update_notice()
shareaholic_process_html in ./shareaholic.module
Implements hook_process_html()

File

./admin.php, line 72

Class

ShareaholicAdmin
This class takes care of all of the admin interface.

Code

public static function show_pending_update_notice(&$vars) {
  if (ShareaholicUtilities::is_admin_page() && ShareaholicUtilities::has_accepted_terms_of_service() && !db_table_exists('shareaholic_content_settings') && user_access('administer modules')) {
    $message = sprintf(t('Action required: You have pending updates required by Shareaholic. Please go to update.php for more information.'));
    $vars['page'] = self::header_message_html($message) . $vars['page'];
  }
}