From eccec7929df788834f12ba4c6efbccf85a30d530 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 23 Sep 2011 18:53:39 -0300 Subject: Adding muamba_system --- .../muamba_system/muamba_system.features.field.inc | 895 +++++++++++++++++++++ features/muamba_system/muamba_system.features.inc | 40 + .../muamba_system.features.taxonomy.inc | 36 + features/muamba_system/muamba_system.info | 60 ++ features/muamba_system/muamba_system.module | 7 + features/muamba_system/muamba_system.strongarm.inc | 218 +++++ muamba.info | 1 + muamba.module | 8 +- 8 files changed, 1260 insertions(+), 5 deletions(-) create mode 100644 features/muamba_system/muamba_system.features.field.inc create mode 100644 features/muamba_system/muamba_system.features.inc create mode 100644 features/muamba_system/muamba_system.features.taxonomy.inc create mode 100644 features/muamba_system/muamba_system.info create mode 100644 features/muamba_system/muamba_system.module create mode 100644 features/muamba_system/muamba_system.strongarm.inc diff --git a/features/muamba_system/muamba_system.features.field.inc b/features/muamba_system/muamba_system.features.field.inc new file mode 100644 index 0000000..0e3de90 --- /dev/null +++ b/features/muamba_system/muamba_system.features.field.inc @@ -0,0 +1,895 @@ + array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array( + 0 => 'comment', + ), + 'field_name' => 'comment_body', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'module' => 'text', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'text_long', + ), + 'field_instance' => array( + 'bundle' => 'comment_node_clube', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 0, + ), + ), + 'entity_type' => 'comment', + 'field_name' => 'comment_body', + 'label' => 'Comment', + 'required' => TRUE, + 'settings' => array( + 'text_processing' => 1, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'module' => 'text', + 'settings' => array( + 'rows' => 5, + ), + 'type' => 'text_textarea', + 'weight' => 0, + ), + ), + ); + + // Exported field: 'comment-comment_node_muamba-comment_body' + $fields['comment-comment_node_muamba-comment_body'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array( + 0 => 'comment', + ), + 'field_name' => 'comment_body', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'module' => 'text', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'text_long', + ), + 'field_instance' => array( + 'bundle' => 'comment_node_muamba', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 0, + ), + ), + 'entity_type' => 'comment', + 'field_name' => 'comment_body', + 'label' => 'Comment', + 'required' => TRUE, + 'settings' => array( + 'text_processing' => 1, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'module' => 'text', + 'settings' => array( + 'rows' => 5, + ), + 'type' => 'text_textarea', + 'weight' => 0, + ), + ), + ); + + // Exported field: 'node-clube-field_descricao' + $fields['node-clube-field_descricao'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_descricao', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'module' => 'text', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'text_long', + ), + 'field_instance' => array( + 'bundle' => 'clube', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => '4', + ), + 'teaser' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => '4', + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_descricao', + 'label' => 'Descrição', + 'required' => 0, + 'settings' => array( + 'text_processing' => '0', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'rows' => '5', + ), + 'type' => 'text_textarea', + 'weight' => '3', + ), + ), + ); + + // Exported field: 'node-clube-field_logo' + $fields['node-clube-field_logo'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_logo', + 'foreign keys' => array( + 'fid' => array( + 'columns' => array( + 'fid' => 'fid', + ), + 'table' => 'file_managed', + ), + ), + 'indexes' => array( + 'fid' => array( + 0 => 'fid', + ), + ), + 'module' => 'image', + 'settings' => array( + 'default_image' => '1', + 'uri_scheme' => 'public', + ), + 'translatable' => '0', + 'type' => 'image', + ), + 'field_instance' => array( + 'bundle' => 'clube', + 'deleted' => '0', + 'description' => 'Logotipo do clube', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'image', + 'settings' => array( + 'image_link' => '', + 'image_style' => '', + ), + 'type' => 'image', + 'weight' => '5', + ), + 'teaser' => array( + 'label' => 'above', + 'module' => 'image', + 'settings' => array( + 'image_link' => '', + 'image_style' => '', + ), + 'type' => 'image', + 'weight' => '5', + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_logo', + 'label' => 'Logo', + 'required' => 0, + 'settings' => array( + 'alt_field' => 0, + 'file_directory' => '', + 'file_extensions' => 'png gif jpg jpeg', + 'max_filesize' => '', + 'max_resolution' => '', + 'min_resolution' => '', + 'title_field' => 0, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'image', + 'settings' => array( + 'preview_image_style' => 'thumbnail', + 'progress_indicator' => 'throbber', + ), + 'type' => 'image_image', + 'weight' => '4', + ), + ), + ); + + // Exported field: 'node-clube-group_access' + $fields['node-clube-group_access'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'group_access', + 'foreign keys' => array(), + 'indexes' => array( + 'value' => array( + 0 => 'value', + ), + ), + 'module' => 'list', + 'no_ui' => TRUE, + 'settings' => array( + 'allowed_values' => array( + 0 => 'Public - accessible to all site users', + 1 => 'Private - accessible only to group members', + ), + 'allowed_values_function' => '', + ), + 'translatable' => '0', + 'type' => 'list_boolean', + ), + 'field_instance' => array( + 'bundle' => 'clube', + 'default_value' => array( + 0 => array( + 'value' => 0, + ), + ), + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'og_ui', + 'settings' => array(), + 'type' => 'og_group_subscribe', + 'weight' => '3', + ), + 'teaser' => array( + 'label' => 'above', + 'module' => 'list', + 'settings' => array(), + 'type' => 'list_default', + 'weight' => '3', + ), + ), + 'entity_type' => 'node', + 'field_name' => 'group_access', + 'label' => 'Group visibility', + 'required' => TRUE, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'view modes' => array( + 'full' => array( + 'label' => 'above', + 'type' => 'options_onoff', + ), + 'teaser' => array( + 'label' => 'above', + 'type' => 'options_onoff', + ), + ), + 'widget' => array( + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_buttons', + 'weight' => '2', + ), + 'widget_type' => 'options_select', + ), + ); + + // Exported field: 'node-clube-group_group' + $fields['node-clube-group_group'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'group_group', + 'foreign keys' => array(), + 'indexes' => array( + 'value' => array( + 0 => 'value', + ), + ), + 'module' => 'list', + 'no_ui' => TRUE, + 'settings' => array( + 'allowed_values' => array( + 0 => 'Not a group type', + 1 => 'Group type', + ), + 'allowed_values_function' => '', + ), + 'translatable' => '0', + 'type' => 'list_boolean', + ), + 'field_instance' => array( + 'bundle' => 'clube', + 'default_value' => array( + 0 => array( + 'value' => 1, + ), + ), + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'og_ui', + 'settings' => array(), + 'type' => 'og_group_subscribe', + 'weight' => '0', + ), + 'teaser' => array( + 'label' => 'above', + 'module' => 'og_ui', + 'settings' => array(), + 'type' => 'og_group_subscribe', + 'weight' => '0', + ), + ), + 'entity_type' => 'node', + 'field_name' => 'group_group', + 'label' => 'Group type', + 'required' => TRUE, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'view modes' => array( + 'full' => array( + 'custom settings' => FALSE, + 'label' => 'Full', + 'type' => 'og_group_subscribe', + ), + 'teaser' => array( + 'custom settings' => FALSE, + 'label' => 'Chamada', + 'type' => 'og_group_subscribe', + ), + ), + 'widget' => array( + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_buttons', + 'weight' => '1', + ), + 'widget_type' => 'options_select', + ), + ); + + // Exported field: 'node-muamba-field_compartilhamento' + $fields['node-muamba-field_compartilhamento'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_compartilhamento', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'compartilhamento', + 'parent' => '0', + ), + ), + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'muamba', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => 2, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_compartilhamento', + 'label' => 'Forma de compartilhamento', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_buttons', + 'weight' => '1', + ), + ), + ); + + // Exported field: 'node-muamba-field_foto' + $fields['node-muamba-field_foto'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_foto', + 'foreign keys' => array( + 'fid' => array( + 'columns' => array( + 'fid' => 'fid', + ), + 'table' => 'file_managed', + ), + ), + 'indexes' => array( + 'fid' => array( + 0 => 'fid', + ), + ), + 'module' => 'image', + 'settings' => array( + 'default_image' => '3', + 'uri_scheme' => 'public', + ), + 'translatable' => '0', + 'type' => 'image', + ), + 'field_instance' => array( + 'bundle' => 'muamba', + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'image', + 'settings' => array( + 'image_link' => '', + 'image_style' => '', + ), + 'type' => 'image', + 'weight' => 4, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_foto', + 'label' => 'Foto', + 'required' => 0, + 'settings' => array( + 'alt_field' => 0, + 'file_directory' => '', + 'file_extensions' => 'png gif jpg jpeg', + 'max_filesize' => '', + 'max_resolution' => '', + 'min_resolution' => '', + 'title_field' => 0, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'image', + 'settings' => array( + 'preview_image_style' => 'thumbnail', + 'progress_indicator' => 'throbber', + ), + 'type' => 'image_image', + 'weight' => '2', + ), + ), + ); + + // Exported field: 'node-muamba-group_audience' + $fields['node-muamba-group_audience'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'group_audience', + 'foreign keys' => array( + 'og' => array( + 'columns' => array( + 'gid' => 'gid', + ), + 'table' => 'og', + ), + ), + 'indexes' => array( + 'gid' => array( + 0 => 'gid', + ), + ), + 'module' => 'og', + 'no_ui' => TRUE, + 'settings' => array(), + 'translatable' => '0', + 'type' => 'group', + ), + 'field_instance' => array( + 'bundle' => 'muamba', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'og', + 'settings' => array(), + 'type' => 'og_list_default', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'group_audience', + 'label' => 'Groups audience', + 'required' => FALSE, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'view modes' => array( + 'full' => array( + 'custom settings' => FALSE, + 'label' => 'Full', + 'type' => 'og_list_default', + ), + 'teaser' => array( + 'custom settings' => FALSE, + 'label' => 'Chamada', + 'type' => 'og_list_default', + ), + ), + 'widget' => array( + 'module' => 'og', + 'settings' => array( + 'opt_group' => 'auto', + ), + 'type' => 'group_audience', + 'weight' => '4', + ), + 'widget_type' => 'group_audience', + ), + ); + + // Exported field: 'node-muamba-group_content_access' + $fields['node-muamba-group_content_access'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'group_content_access', + 'foreign keys' => array(), + 'indexes' => array( + 'value' => array( + 0 => 'value', + ), + ), + 'module' => 'list', + 'no_ui' => TRUE, + 'settings' => array( + 'allowed_values' => array( + 0 => 'Use group defaults', + 1 => 'Public - accessible to all site users', + 2 => 'Private - accessible only to group members', + ), + 'allowed_values_function' => '', + ), + 'translatable' => '0', + 'type' => 'list_integer', + ), + 'field_instance' => array( + 'bundle' => 'muamba', + 'default_value' => array( + 0 => array( + 'value' => 0, + ), + ), + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'list', + 'settings' => array(), + 'type' => 'list_default', + 'weight' => 3, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'group_content_access', + 'label' => 'Group content visibility', + 'required' => TRUE, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'view modes' => array( + 'full' => array( + 'label' => 'above', + 'type' => 'list_default', + ), + 'teaser' => array( + 'label' => 'above', + 'type' => 'list_default', + ), + ), + 'widget' => array( + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '3', + ), + 'widget_type' => 'options_select', + ), + ); + + // Exported field: 'og_membership-og_membership_type_default-og_membership_request' + $fields['og_membership-og_membership_type_default-og_membership_request'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array( + 0 => 'og_membership', + ), + 'field_name' => 'og_membership_request', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'module' => 'text', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'text_long', + ), + 'field_instance' => array( + 'bundle' => 'og_membership_type_default', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'This is the text a user may send to the group administrators.', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 0, + ), + ), + 'entity_type' => 'og_membership', + 'field_name' => 'og_membership_request', + 'label' => 'Request message', + 'required' => FALSE, + 'settings' => array( + 'text_processing' => 0, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'module' => 'text', + 'settings' => array( + 'rows' => 5, + ), + 'type' => 'text_textarea', + 'weight' => 0, + ), + ), + ); + + // Exported field: 'user-user-group_audience' + $fields['user-user-group_audience'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'group_audience', + 'foreign keys' => array( + 'og' => array( + 'columns' => array( + 'gid' => 'gid', + ), + 'table' => 'og', + ), + ), + 'indexes' => array( + 'gid' => array( + 0 => 'gid', + ), + ), + 'module' => 'og', + 'no_ui' => TRUE, + 'settings' => array(), + 'translatable' => '0', + 'type' => 'group', + ), + 'field_instance' => array( + 'bundle' => 'user', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'og', + 'settings' => array(), + 'type' => 'og_list_default', + 'weight' => 0, + ), + ), + 'entity_type' => 'user', + 'field_name' => 'group_audience', + 'label' => 'Groups audience', + 'required' => FALSE, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'view modes' => array( + 'full' => array( + 'custom settings' => FALSE, + 'label' => 'Full', + 'type' => 'og_list_default', + ), + 'teaser' => array( + 'custom settings' => FALSE, + 'label' => 'Chamada', + 'type' => 'og_list_default', + ), + ), + 'widget' => array( + 'module' => 'og', + 'settings' => array( + 'opt_group' => 'auto', + ), + 'type' => 'group_audience', + 'weight' => 7, + ), + 'widget_type' => 'group_audience', + ), + ); + + // Translatables + // Included for use with string extractors like potx. + t('Comment'); + t('Descrição'); + t('Forma de compartilhamento'); + t('Foto'); + t('Group content visibility'); + t('Group type'); + t('Group visibility'); + t('Groups audience'); + t('Logo'); + t('Logotipo do clube'); + t('Request message'); + t('This is the text a user may send to the group administrators.'); + + return $fields; +} diff --git a/features/muamba_system/muamba_system.features.inc b/features/muamba_system/muamba_system.features.inc new file mode 100644 index 0000000..e432469 --- /dev/null +++ b/features/muamba_system/muamba_system.features.inc @@ -0,0 +1,40 @@ + "1"); + } +} + +/** + * Implements hook_node_info(). + */ +function muamba_system_node_info() { + $items = array( + 'clube' => array( + 'name' => t('Clube'), + 'base' => 'node_content', + 'description' => t('Clube de Muamba'), + 'has_title' => '1', + 'title_label' => t('Nome'), + 'help' => '', + ), + 'muamba' => array( + 'name' => t('Muamba'), + 'base' => 'node_content', + 'description' => t('Equipamento ou recurso em geral.'), + 'has_title' => '1', + 'title_label' => t('Nome'), + 'help' => '', + ), + ); + return $items; +} diff --git a/features/muamba_system/muamba_system.features.taxonomy.inc b/features/muamba_system/muamba_system.features.taxonomy.inc new file mode 100644 index 0000000..22b9129 --- /dev/null +++ b/features/muamba_system/muamba_system.features.taxonomy.inc @@ -0,0 +1,36 @@ + array( + 'name' => 'Compartilhamento', + 'machine_name' => 'compartilhamento', + 'description' => 'Forma de compartilhamento', + 'hierarchy' => '0', + 'module' => 'taxonomy', + 'weight' => '0', + 'rdf_mapping' => array( + 'rdftype' => array( + 0 => 'skos:ConceptScheme', + ), + 'name' => array( + 'predicates' => array( + 0 => 'dc:title', + ), + ), + 'description' => array( + 'predicates' => array( + 0 => 'rdfs:comment', + ), + ), + ), + ), + ); +} diff --git a/features/muamba_system/muamba_system.info b/features/muamba_system/muamba_system.info new file mode 100644 index 0000000..3d3c8c5 --- /dev/null +++ b/features/muamba_system/muamba_system.info @@ -0,0 +1,60 @@ +core = "7.x" +dependencies[] = "features" +dependencies[] = "image" +dependencies[] = "og" +dependencies[] = "og_access" +dependencies[] = "og_context" +dependencies[] = "og_field_access" +dependencies[] = "og_register" +dependencies[] = "og_ui" +dependencies[] = "strongarm" +dependencies[] = "taxonomy" +description = "Muamba group and asset system" +features[ctools][] = "strongarm:strongarm:1" +features[field][] = "comment-comment_node_clube-comment_body" +features[field][] = "comment-comment_node_muamba-comment_body" +features[field][] = "node-clube-field_descricao" +features[field][] = "node-clube-field_logo" +features[field][] = "node-clube-group_access" +features[field][] = "node-clube-group_group" +features[field][] = "node-muamba-field_compartilhamento" +features[field][] = "node-muamba-field_foto" +features[field][] = "node-muamba-group_audience" +features[field][] = "node-muamba-group_content_access" +features[field][] = "og_membership-og_membership_type_default-og_membership_request" +features[field][] = "user-user-group_audience" +features[node][] = "clube" +features[node][] = "muamba" +features[taxonomy][] = "compartilhamento" +features[variable][] = "comment_anonymous_clube" +features[variable][] = "comment_anonymous_muamba" +features[variable][] = "comment_clube" +features[variable][] = "comment_default_mode_clube" +features[variable][] = "comment_default_mode_muamba" +features[variable][] = "comment_default_per_page_clube" +features[variable][] = "comment_default_per_page_muamba" +features[variable][] = "comment_form_location_clube" +features[variable][] = "comment_form_location_muamba" +features[variable][] = "comment_muamba" +features[variable][] = "comment_preview_clube" +features[variable][] = "comment_preview_muamba" +features[variable][] = "comment_subject_field_clube" +features[variable][] = "comment_subject_field_muamba" +features[variable][] = "language_content_type_clube" +features[variable][] = "language_content_type_muamba" +features[variable][] = "menu_options_clube" +features[variable][] = "menu_options_muamba" +features[variable][] = "menu_parent_clube" +features[variable][] = "menu_parent_muamba" +features[variable][] = "node_options_clube" +features[variable][] = "node_options_muamba" +features[variable][] = "node_preview_clube" +features[variable][] = "node_preview_muamba" +features[variable][] = "node_submitted_clube" +features[variable][] = "node_submitted_muamba" +features[variable][] = "og_group_content_type_clube" +features[variable][] = "og_group_type_muamba" +name = "Muamba System" +package = "Features" +project = "muamba_system" +version = "7.x-0.1" diff --git a/features/muamba_system/muamba_system.module b/features/muamba_system/muamba_system.module new file mode 100644 index 0000000..aa906cd --- /dev/null +++ b/features/muamba_system/muamba_system.module @@ -0,0 +1,7 @@ +disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_anonymous_clube'; + $strongarm->value = 0; + $export['comment_anonymous_clube'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_anonymous_muamba'; + $strongarm->value = 0; + $export['comment_anonymous_muamba'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_clube'; + $strongarm->value = '2'; + $export['comment_clube'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_default_mode_clube'; + $strongarm->value = 1; + $export['comment_default_mode_clube'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_default_mode_muamba'; + $strongarm->value = 1; + $export['comment_default_mode_muamba'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_default_per_page_clube'; + $strongarm->value = '50'; + $export['comment_default_per_page_clube'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_default_per_page_muamba'; + $strongarm->value = '50'; + $export['comment_default_per_page_muamba'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_form_location_clube'; + $strongarm->value = 1; + $export['comment_form_location_clube'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_form_location_muamba'; + $strongarm->value = 1; + $export['comment_form_location_muamba'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_muamba'; + $strongarm->value = '2'; + $export['comment_muamba'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_preview_clube'; + $strongarm->value = '1'; + $export['comment_preview_clube'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_preview_muamba'; + $strongarm->value = '1'; + $export['comment_preview_muamba'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_subject_field_clube'; + $strongarm->value = 1; + $export['comment_subject_field_clube'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'comment_subject_field_muamba'; + $strongarm->value = 1; + $export['comment_subject_field_muamba'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'language_content_type_clube'; + $strongarm->value = '0'; + $export['language_content_type_clube'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'language_content_type_muamba'; + $strongarm->value = '0'; + $export['language_content_type_muamba'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'menu_options_clube'; + $strongarm->value = array( + 0 => 'main-menu', + ); + $export['menu_options_clube'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'menu_options_muamba'; + $strongarm->value = array( + 0 => 'main-menu', + ); + $export['menu_options_muamba'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'menu_parent_clube'; + $strongarm->value = 'main-menu:0'; + $export['menu_parent_clube'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'menu_parent_muamba'; + $strongarm->value = 'main-menu:0'; + $export['menu_parent_muamba'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'node_options_clube'; + $strongarm->value = array( + 0 => 'status', + ); + $export['node_options_clube'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'node_options_muamba'; + $strongarm->value = array( + 0 => 'status', + ); + $export['node_options_muamba'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'node_preview_clube'; + $strongarm->value = '1'; + $export['node_preview_clube'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'node_preview_muamba'; + $strongarm->value = '1'; + $export['node_preview_muamba'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'node_submitted_clube'; + $strongarm->value = 1; + $export['node_submitted_clube'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'node_submitted_muamba'; + $strongarm->value = 1; + $export['node_submitted_muamba'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'og_group_content_type_clube'; + $strongarm->value = 'omitted'; + $export['og_group_content_type_clube'] = $strongarm; + + $strongarm = new stdClass; + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'og_group_type_muamba'; + $strongarm->value = 'omitted'; + $export['og_group_type_muamba'] = $strongarm; + + return $export; +} diff --git a/muamba.info b/muamba.info index 79a4fa1..f039221 100644 --- a/muamba.info +++ b/muamba.info @@ -7,3 +7,4 @@ files[] = muamba.misc.inc dependencies[] = features dependencies[] = strongarm dependencies[] = muamba_interface +dependencies[] = muamba_system diff --git a/muamba.module b/muamba.module index 40d199f..fbddf45 100644 --- a/muamba.module +++ b/muamba.module @@ -10,7 +10,7 @@ */ function muamba_permission() { return array( - 'administer muamba' => array( + 'administer muamba' => array( 'title' => t('request item'), 'description' => t('Request an item to be borrowed or donated.'), ), @@ -42,12 +42,10 @@ function muamba_menu() { function muamba_node_view($node, $view_mode, $langcode) { global $user; - /* - // Do not show widget to the owner - if ($node->uid == $user->uid) { + // Do not show widget to the owner or on non-muamba content types + if ($node->uid == $user->uid || $node->type != 'muamba') { return; } - */ if ($view_mode == 'full') { $node->content['muamba'] = array( -- cgit v1.2.3