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