Révision 64156087
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/panels/plugins/page_wizards/landing_page.inc | ||
---|---|---|
103 | 103 |
'#default_value' => $cache->admin_description, |
104 | 104 |
); |
105 | 105 |
|
106 |
// path
|
|
106 |
// Path.
|
|
107 | 107 |
$form['path'] = array( |
108 | 108 |
'#type' => 'textfield', |
109 | 109 |
'#title' => t('Path'), |
... | ... | |
136 | 136 |
'#options' => menu_get_menus(), |
137 | 137 |
'#default_value' => $cache->menu['name'], |
138 | 138 |
'#process' => array('ctools_dependent_process'), |
139 |
'#dependency' => array('edit-menu-entry' => array(1)), |
|
139 |
'#dependency' => array('edit-menu-entry' => array(1)),
|
|
140 | 140 |
); |
141 | 141 |
} |
142 | 142 |
else { |
... | ... | |
185 | 185 |
form_error($form['path'], t('%, !, ?, #, or & cannot appear in the path.')); |
186 | 186 |
} |
187 | 187 |
|
188 |
// Check to see if something is already using the path |
|
188 |
// Check to see if something is already using the path.
|
|
189 | 189 |
$result = db_query("SELECT * FROM {menu_router} WHERE path = :path", array(':path' => $form_state['values']['path']))->fetch(); |
190 | 190 |
if ($result) { |
191 | 191 |
form_error($form['path'], t('That path is already in use. This system cannot override existing paths.')); |
... | ... | |
256 | 256 |
$subtask->path = $cache->path; |
257 | 257 |
$subtask->menu = $cache->menu; |
258 | 258 |
|
259 |
// Create the the panel context variant configured with our display |
|
259 |
// Create the the panel context variant configured with our display.
|
|
260 | 260 |
$plugin = page_manager_get_task_handler('panel_context'); |
261 | 261 |
|
262 | 262 |
// Set the storage id. |
... | ... | |
274 | 274 |
page_manager_page_new_page_cache($subtask, $page); |
275 | 275 |
page_manager_handler_add_to_page($page, $handler); |
276 | 276 |
|
277 |
// Save it |
|
277 |
// Save it.
|
|
278 | 278 |
page_manager_save_page_cache($page); |
279 | 279 |
|
280 | 280 |
// Send us to the new page immediately. |
Formats disponibles : Unified diff
Weekly update of contrib modules