Révision 560c3060
Ajouté par Julien Enselme il y a plus de 8 ans
drupal7/sites/all/modules/ctools/plugins/contexts/user_edit_form.inc | ||
---|---|---|
34 | 34 |
$category = !empty($conf['category']) ? $conf['category'] : FALSE; |
35 | 35 |
unset($conf['category']); |
36 | 36 |
|
37 |
// If no category was specified, use the default 'account'. |
|
38 |
if (!$category) { |
|
39 |
$category = 'account'; |
|
40 |
} |
|
37 | 41 |
// Return previously created contexts, per category. |
38 | 42 |
static $created = array(); |
39 | 43 |
if (!empty($created[$category])) { |
40 | 44 |
return $created[$category]; |
41 | 45 |
} |
42 |
// If no category was specified, use the default 'account'. |
|
43 |
if (!$category) { |
|
44 |
$category = 'account'; |
|
45 |
} |
|
46 | 46 |
|
47 | 47 |
$context = new ctools_context(array('form', 'user_edit', 'user_form', 'user_edit_form', 'user', 'entity:user')); |
48 | 48 |
// Store this context for later. |
Formats disponibles : Unified diff
Update ctools 1.7 -> 1.9