summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2011-09-20 14:51:47 (GMT)
committer Earl Miles2011-09-20 14:51:47 (GMT)
commitb3ab5e7b326d4dcfbc95d0e8ceb81ced9de3c80f (patch)
tree312084d599b3e8d278e5d411cf854f416857ea90
parenta6ef733347a5358c3a52698071e47611649adf82 (diff)
Issue #956394 by DamienMcKenna: Layout field too small for custom flexible.
-rw-r--r--panels.install25
-rw-r--r--panels_ipe/panels_ipe.module2
2 files changed, 25 insertions, 2 deletions
diff --git a/panels.install b/panels.install
index 4599b46..3dcd57c 100644
--- a/panels.install
+++ b/panels.install
@@ -251,7 +251,7 @@ function panels_schema_1() {
),
'layout' => array(
'type' => 'varchar',
- 'length' => '32',
+ 'length' => '255',
'default' => '',
),
'layout_settings' => array(
@@ -1513,3 +1513,26 @@ function panels_update_6310() {
drupal_install_modules(array('stylizer'));
return $ret;
}
+
+/**
+ * Change panels_display.layout to match the size of panels_layout.name.
+ */
+function panels_update_6311() {
+ $ret = array();
+
+ // Clear the schema cache so the change is picked up.
+ cache_clear_all('schema', 'cache');
+
+ // Load the schema.
+ $schema = panels_schema();
+ $table = 'panels_display';
+ $field = 'layout';
+ $spec = $schema[$table]['fields'][$field];
+
+ // Re-define the column.
+ db_change_field($ret, $table, $field, $field, $spec);
+
+ $ret[] = array('success' => TRUE, 'query' => t('Changed the panels_display.layout field to the correct size.'));
+
+ return $ret;
+}
diff --git a/panels_ipe/panels_ipe.module b/panels_ipe/panels_ipe.module
index c0520a2..4080905 100644
--- a/panels_ipe/panels_ipe.module
+++ b/panels_ipe/panels_ipe.module
@@ -141,7 +141,7 @@ function panels_ipe_footer($main = 0) {
$output .= "<div class='panels-ipe-startedit panels-ipe-pseudobutton panels-ipe-off'>";
$output .= "<span>" . t('Customize this page') . "</span>";
$output .= "</div>";
- $output .= "<div class='panels-ipe-form-container panels-ipe-on clear-block'</div>";
+ $output .= "<div class='panels-ipe-form-container panels-ipe-on clear-block'></div>";
$output .= "</div></div>";
return $output;
}