diff --git a/hola.txt b/hola.txt new file mode 100644 index 0000000..d4c7215 --- /dev/null +++ b/hola.txt @@ -0,0 +1,2 @@ +Hola!!! + diff --git a/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.features.field_base.inc b/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.features.field_base.inc new file mode 100644 index 0000000..e6d1e6f --- /dev/null +++ b/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.features.field_base.inc @@ -0,0 +1,70 @@ + 1, + 'cardinality' => 1, + 'deleted' => 0, + 'entity_types' => array( + 0 => 'node', + ), + 'field_name' => 'body', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => 0, + 'module' => 'text', + 'settings' => array(), + 'translatable' => 0, + 'type' => 'text_with_summary', + ); + + // Exported field_base: 'field_estado' + $field_bases['field_estado'] = array( + 'active' => 1, + 'cardinality' => 1, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_estado', + 'foreign keys' => array(), + 'indexes' => array( + 'value' => array( + 0 => 'value', + ), + ), + 'locked' => 0, + 'module' => 'list', + 'settings' => array( + 'allowed_values' => array( + 1 => 'Aprobado', + 2 => 'Rechazado', + 3 => 'Seleccionado', + ), + 'allowed_values_function' => '', + ), + 'translatable' => 0, + 'type' => 'list_integer', + ); + + return $field_bases; +} diff --git a/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.features.field_instance.inc b/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.features.field_instance.inc new file mode 100644 index 0000000..9d550a1 --- /dev/null +++ b/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.features.field_instance.inc @@ -0,0 +1,100 @@ + 'rules_exercise', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array( + 'trim_length' => 600, + ), + 'type' => 'text_summary_or_trimmed', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'body', + 'label' => 'Body', + 'required' => FALSE, + 'settings' => array( + 'display_summary' => TRUE, + 'text_processing' => 1, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'module' => 'text', + 'settings' => array( + 'rows' => 20, + 'summary_rows' => 5, + ), + 'type' => 'text_textarea_with_summary', + 'weight' => -4, + ), + ); + + // Exported field_instance: 'node-rules_exercise-field_estado' + $field_instances['node-rules_exercise-field_estado'] = array( + 'bundle' => 'rules_exercise', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'list', + 'settings' => array(), + 'type' => 'list_default', + 'weight' => 1, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_estado', + 'label' => 'Estado', + 'required' => 1, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => -3, + ), + ); + + // Translatables + // Included for use with string extractors like potx. + t('Body'); + t('Estado'); + + return $field_instances; +} diff --git a/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.features.inc b/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.features.inc new file mode 100644 index 0000000..910d89c --- /dev/null +++ b/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.features.inc @@ -0,0 +1,22 @@ + array( + 'name' => t('Rules exercise'), + 'base' => 'node_content', + 'description' => '', + 'has_title' => '1', + 'title_label' => t('Title'), + 'help' => '', + ), + ); + return $items; +} diff --git a/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.features.user_role.inc b/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.features.user_role.inc new file mode 100644 index 0000000..ae1cf7b --- /dev/null +++ b/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.features.user_role.inc @@ -0,0 +1,20 @@ + 'Administrador de contenidos', + 'weight' => 3, + ); + + return $roles; +} diff --git a/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.info b/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.info new file mode 100644 index 0000000..15fbe61 --- /dev/null +++ b/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.info @@ -0,0 +1,21 @@ +name = Drupal Formacion Rules +description = See exercise description +core = 7.x +package = Features +version = 7.x-1.0 +project = drupal_formacion_rules +dependencies[] = entity +dependencies[] = features +dependencies[] = list +dependencies[] = options +dependencies[] = rules +dependencies[] = text +features[features_api][] = api:2 +features[field_base][] = body +features[field_base][] = field_estado +features[field_instance][] = node-rules_exercise-body +features[field_instance][] = node-rules_exercise-field_estado +features[node][] = rules_exercise +features[rules_config][] = rules_email_content_admin +features[rules_config][] = rules_unpublish_rejected_content +features[user_role][] = Administrador de contenidos diff --git a/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.module b/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.module new file mode 100644 index 0000000..dd0ae2c --- /dev/null +++ b/sites/all/modules/features/drupal_formacion_rules/drupal_formacion_rules.module @@ -0,0 +1,7 @@ +