Skip to content
Snippets Groups Projects
Commit f83c2a49 authored by Daniel Kudwien's avatar Daniel Kudwien
Browse files

#325831 by sun: Fixed url() in hook_requirements() breaks install profiles.

parent 627c698c
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ jQuery UI x.x-x.x, xxxx-xx-xx ...@@ -6,6 +6,7 @@ jQuery UI x.x-x.x, xxxx-xx-xx
jQuery UI 7.x-1.x, xxxx-xx-xx jQuery UI 7.x-1.x, xxxx-xx-xx
----------------------------- -----------------------------
#325831 by sun: Fixed url() in hook_requirements() breaks install profiles.
#325831 by hanoii: Fixed drupal_get_path() in hook_requirements() breaks install #325831 by hanoii: Fixed drupal_get_path() in hook_requirements() breaks install
profiles. profiles.
#758910 by fp, sun: Fixed jQuery UI download link. #758910 by fp, sun: Fixed jQuery UI download link.
......
...@@ -31,11 +31,9 @@ function jquery_ui_requirements($phase) { ...@@ -31,11 +31,9 @@ function jquery_ui_requirements($phase) {
$requirements['jquery_ui']['value'] = $t('Not found'); $requirements['jquery_ui']['value'] = $t('Not found');
// Provide a download link to the jQuery UI development bundle. The provided // Provide a download link to the jQuery UI development bundle. The provided
// link will list the latest 1.7 build. // link will list the latest 1.7 build.
$requirements['jquery_ui']['description'] = $t('The <a href="@jqueryui">jQuery UI</a> plugin is missing. <a href="@download">Download</a> and extract it to your <em>jquery_ui</em> module directory. See <a href="@readme">README.txt</a> for more info.', array( $requirements['jquery_ui']['description'] = $t('The <a href="@jqueryui">jQuery UI</a> plugin is missing. <a href="@download">Download</a> and extract it to your <em>jquery_ui</em> module directory.', array(
'@jqueryui' => 'http://jqueryui.com', '@jqueryui' => 'http://jqueryui.com',
'@download' => 'http://code.google.com/p/jquery-ui/downloads/list?q=1.7', '@download' => 'http://code.google.com/p/jquery-ui/downloads/list?q=1.7',
// drupal_get_path() breaks install profiles.
'@readme' => dirname(str_replace(getcwd(), '', __FILE__)) . '/README.txt',
)); ));
$requirements['jquery_ui']['severity'] = REQUIREMENT_ERROR; $requirements['jquery_ui']['severity'] = REQUIREMENT_ERROR;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment