Commit 5c678c5e authored by frjo's avatar frjo
Browse files

Removed double spaces and other minor stuff.

parent 0e00f4e1
......@@ -211,8 +211,7 @@ function _colorbox_doheader() {
$path = drupal_get_path('module', 'colorbox');
$style = variable_get('colorbox_style', 'default');
// Give other modules the possibility to override Colorbox settings and
// style.
// Give other modules the possibility to override Colorbox settings and style.
$data = &$js_settings;
$data['__drupal_alter_by_ref'] = array(&$style);
drupal_alter('colorbox_settings', $data);
......
......@@ -61,15 +61,17 @@ function colorbox_drush_help($section) {
}
/**
* Example drush command callback.
*
* This is where the action takes place.
*
* In this function, all of Drupals API is (usually) available, including
* any functions you have added in your own modules/themes.
*
* To print something to the terminal window, use drush_print().
*
* Implements drush_MODULE_post_pm_enable().
*/
// function drush_colorbox_post_pm_enable() {
// $modules = func_get_args();
// if (in_array('colorbox', $modules)) {
// drush_colorbox_plugin();
// }
// }
/**
* Command to download the Colorbox plugin.
*/
function drush_colorbox_plugin() {
if (!drush_shell_exec('type unzip')) {
......
......@@ -88,7 +88,7 @@ class colorbox_handler_field_colorbox extends views_handler_field {
$form['height'] = array(
'#type' => 'textfield',
'#title' => t('Height'),
'#description' => t('Specify the height of the Colorbox popup window. Because the content is dynamic, we cannot detect this value automatically.'),
'#description' => t('Specify the height of the Colorbox popup window. Because the content is dynamic, we cannot detect this value automatically. Example: "100%", 500, "500px".'),
'#default_value' => $this->options['height'],
'#weight' => -7,
);
......@@ -96,7 +96,7 @@ class colorbox_handler_field_colorbox extends views_handler_field {
$form['width'] = array(
'#type' => 'textfield',
'#title' => t('Width'),
'#description' => t('Specify the width of the Colorbox popup window. Because the content is dynamic, we cannot detect this value automatically.'),
'#description' => t('Specify the width of the Colorbox popup window. Because the content is dynamic, we cannot detect this value automatically. Example: "100%", 500, "500px".'),
'#default_value' => $this->options['width'],
'#weight' => -6,
);
......
Markdown is supported
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