@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_site_homepage.features.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_site_homepage.features.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_ctools_plugin_api(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_site_homepage.pages_default.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_site_homepage.pages_default.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_default_page_manager_pages(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * Commons module integration for the Commons Posts module. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Commons module integration for the Commons Posts module. |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_commons_entity_integration(). |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | function commons_posts_commons_bw_create_all_widget($group) { |
| 41 | 41 | if (og_user_access('node', $group->nid, 'create post content')) { |
| 42 | - $link = l(t('Create a post'),'node/add/post', |
|
| 42 | + $link = l(t('Create a post'), 'node/add/post', |
|
| 43 | 43 | array('attributes' => array('class' => 'commons-posts-create'), 'query' => array('og_group_ref' => $group->nid)) |
| 44 | 44 | ); |
| 45 | 45 | return array( |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_posts.features.user_permission.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_posts.features.user_permission.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_user_default_permissions(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_posts.features.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_posts.features.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_ctools_plugin_api(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_posts.features.og_features_permission.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_posts.features.og_features_permission.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_og_features_default_permissions(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_posts.features.field_instance.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_posts.features.field_instance.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_field_default_field_instances(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_posts.views_default.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_posts.views_default.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_views_default_views(). |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * Code for the Commons Posts feature. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Code for the Commons Posts feature. |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | include_once 'commons_posts.features.inc'; |
| 8 | 8 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | /** |
| 74 | 74 | * Implements hook_strongarm_alter(). |
| 75 | 75 | */ |
| 76 | - function commons_posts_strongarm_alter(&$items) { |
|
| 76 | + function commons_posts_strongarm_alter(&$items) { |
|
| 77 | 77 | // Expose the post content type for integration with Commons Radioactivity |
| 78 | 78 | // and Commons Groups. |
| 79 | 79 | foreach (array('commons_radioactivity_entity_types', 'commons_groups_entity_types') as $key) { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | function commons_posts_form_node_form_alter(&$form, &$form_state, $form_id) { |
| 13 | 13 | $node = $form['#node']; |
| 14 | 14 | |
| 15 | - list(, , $bundle) = entity_extract_ids('node', $node); |
|
| 15 | + list(,, $bundle) = entity_extract_ids('node', $node); |
|
| 16 | 16 | |
| 17 | 17 | if ($bundle == 'post' && empty($node->nid)) { |
| 18 | 18 | drupal_set_title(t('Create a post')); |