Commit 627c698c authored by sun's avatar sun
Browse files

#325831 by hanoii: Fixed drupal_get_path() in hook_requirements() breaks install profiles.

parent 0c67dbcb
...@@ -6,6 +6,8 @@ jQuery UI x.x-x.x, xxxx-xx-xx ...@@ -6,6 +6,8 @@ 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 hanoii: Fixed drupal_get_path() in hook_requirements() breaks install
profiles.
#758910 by fp, sun: Fixed jQuery UI download link. #758910 by fp, sun: Fixed jQuery UI download link.
#542908 by sun: Clarified installation instructions. #542908 by sun: Clarified installation instructions.
#503848 by Gbor Hojtsy: Added default weight of JS_LIBRARY for JavaScripts. #503848 by Gbor Hojtsy: Added default weight of JS_LIBRARY for JavaScripts.
......
...@@ -30,8 +30,13 @@ function jquery_ui_requirements($phase) { ...@@ -30,8 +30,13 @@ function jquery_ui_requirements($phase) {
// Required library wasn't found. Abort installation. // Required library wasn't found. Abort installation.
$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.6.x 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('@jqueryui' => 'http://jqueryui.com', '@download' => 'http://code.google.com/p/jquery-ui/downloads/list?can=3&q=1.6', '@readme' => url(drupal_get_path('module', 'jquery_ui') . '/README.txt'))); $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(
'@jqueryui' => 'http://jqueryui.com',
'@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;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment