You are here

function commerce_kickstart_inline_help_preprocess_page in Commerce Kickstart 7.2

Remove the system help. Replaced by inline help. Moves the action links from pages with inline help, after inline help.

File

modules/commerce_kickstart/commerce_kickstart_help/commerce_kickstart_inline_help/commerce_kickstart_inline_help.module, line 61
Code for the Commerce Kickstart Inline Help.

Code

function commerce_kickstart_inline_help_preprocess_page(&$vars) {
  if (isset($vars['page']['content']['system_main']['help_text'])) {
    $vars['page']['help'] = '';
    if ($vars['action_links']) {
      $vars['page']['content']['system_main']['local_tasks'] = array(
        '#weight' => -9,
        '#markup' => '<ul class="action-links">' . render($vars['action_links']) . '</ul>',
      );
      $vars['action_links'] = '';
    }
  }
}