@@ -137,7 +137,7 @@ |
||
| 137 | 137 | * The machine name of the scenario feature. |
| 138 | 138 | * @param string $rollback |
| 139 | 139 | * Boolean: rollback existing demo content. |
| 140 | - */ |
|
| 140 | + */ |
|
| 141 | 141 | function drush_df_admin_reset_scenario($scenario) { |
| 142 | 142 | $rollback = drush_get_option('rollback', TRUE); |
| 143 | 143 | $seed = drush_get_option('seed', TRUE); |
@@ -135,8 +135,6 @@ |
||
| 135 | 135 | * |
| 136 | 136 | * @param string $scenario |
| 137 | 137 | * The machine name of the scenario feature. |
| 138 | - * @param string $rollback |
|
| 139 | - * Boolean: rollback existing demo content. |
|
| 140 | 138 | */ |
| 141 | 139 | function drush_df_admin_reset_scenario($scenario) { |
| 142 | 140 | $rollback = drush_get_option('rollback', TRUE); |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | $import_path = drupal_get_path('module', 'dfs_med') . '/import/'; |
| 90 | 90 | $this->source = new MigrateSourceCSV($import_path . 'dfs_med.nodes.episode.csv', $this->csvcolumns(), array('header_rows' => 1)); |
| 91 | 91 | $this->addFieldMapping('value', 'video'); |
| 92 | - } |
|
| 92 | + } |
|
| 93 | 93 | |
| 94 | 94 | function csvcolumns() { |
| 95 | 95 | $columns[10] = array('video', 'Video'); |
@@ -6,9 +6,9 @@ |
||
| 6 | 6 | |
| 7 | 7 | class DFToolsBeanBlock extends BeanPlugin { |
| 8 | 8 | |
| 9 | - /** |
|
| 10 | - * Declares default block settings. |
|
| 11 | - */ |
|
| 9 | + /** |
|
| 10 | + * Declares default block settings. |
|
| 11 | + */ |
|
| 12 | 12 | public function values() { |
| 13 | 13 | return array( |
| 14 | 14 | 'view_mode' => 'default', |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | $import_path = drupal_get_path('module', 'dfs_med') . '/import/'; |
| 90 | 90 | $this->source = new MigrateSourceCSV($import_path . 'dfs_med.nodes.episode.csv', $this->csvcolumns(), array('header_rows' => 1)); |
| 91 | 91 | $this->addFieldMapping('value', 'video'); |
| 92 | - } |
|
| 92 | + } |
|
| 93 | 93 | |
| 94 | 94 | function csvcolumns() { |
| 95 | 95 | $columns[10] = array('video', 'Video'); |
@@ -15,5 +15,5 @@ |
||
| 15 | 15 | $overrides["field_group.group_com_tabs|node|commerce|form.data|weight"] = 2; |
| 16 | 16 | $overrides["field_group.group_product|node|commerce|form.data|children|2"] = 'field_product_image'; |
| 17 | 17 | |
| 18 | - return $overrides; |
|
| 18 | + return $overrides; |
|
| 19 | 19 | } |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | * Implements hook_navbar_alter(). |
| 79 | 79 | */ |
| 80 | 80 | function df_admin_navbar_alter(&$items) { |
| 81 | - foreach ($items['administration']['tray']['navbar_administration']['administration_menu'] as $mid => $item) { |
|
| 81 | + foreach ($items['administration']['tray']['navbar_administration']['administration_menu'] as $mid => $item) { |
|
| 82 | 82 | // Change "My Workbench" to "Workbench" in the Navbar. |
| 83 | 83 | if (isset($item['#href']) && $item['#href'] == 'admin/workbench') { |
| 84 | 84 | $items['administration']['tray']['navbar_administration']['administration_menu'][$mid]['#title'] = 'Workbench'; |
@@ -276,6 +276,7 @@ |
||
| 276 | 276 | * |
| 277 | 277 | * Replaces instances of "sites/default/files" in fields with the current file |
| 278 | 278 | * path. |
| 279 | + * @param string $type |
|
| 279 | 280 | */ |
| 280 | 281 | function df_admin_entity_insert($entity, $type, $ignore_migrate = FALSE) { |
| 281 | 282 | if (isset($entity->migrate) || $ignore_migrate) { |
@@ -89,6 +89,9 @@ discard block |
||
| 89 | 89 | * @param $items_number |
| 90 | 90 | * @param $order_state |
| 91 | 91 | */ |
| 92 | +/** |
|
| 93 | + * @param integer $items_number |
|
| 94 | + */ |
|
| 92 | 95 | function _df_commerce_create_order($uid, $items_number, $is_cart = FALSE) { |
| 93 | 96 | // Create order as a cart. |
| 94 | 97 | $order = commerce_order_new($uid, 'cart'); |
@@ -171,7 +174,7 @@ discard block |
||
| 171 | 174 | * Helper function to update the order status and set the message. |
| 172 | 175 | * |
| 173 | 176 | * @param $order |
| 174 | - * @param $status |
|
| 177 | + * @param string $status |
|
| 175 | 178 | */ |
| 176 | 179 | function _df_commerce_update_order_status($order, $status) { |
| 177 | 180 | // We need to harcode the previous state, as the entity will not |