/** * Implements theme_pager() */ function okcdesign_pager($variables) { $html = theme_plugins_invoke(__FUNCTION__, $variables); if ($html) { return $html; } return theme_pager($variables); }
/** * Test plugin invocation with theme_plugins_invoke function. * As foundation plugin is supposed to be always enabled, invoking * "hook_html_head_alter" should modify header with "foundation" plugin * and add mobile viewport header. */ function test_theme_plugins_invoke() { static $headers = array(); theme_plugins_invoke('hook_html_head_alter', $headers); $this->assertArrayHasKey('mobile_viewport', $headers); }