Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 126 additions & 0 deletions sites/all/modules/ahmedm/ahmedm.features.field_base.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?php
/**
* @file
* ahmedm.features.field_base.inc
*/

/**
* Implements hook_field_default_field_bases().
*/
function ahmedm_field_default_field_bases() {
$field_bases = array();

// Exported field_base: 'body'
$field_bases['body'] = array(
'active' => 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_category_romance_iam'
$field_bases['field_category_romance_iam'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_category_romance_iam',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
'Man' => 'Man',
'Woman' => 'Woman',
'Halal' => 'Halal',
'Haram' => 'Haram',
),
'allowed_values_function' => '',
),
'translatable' => 0,
'type' => 'list_text',
);

// Exported field_base: 'field_category_romance_seeking'
$field_bases['field_category_romance_seeking'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_category_romance_seeking',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
'Man' => 'Man',
'Woman' => 'Woman',
'Halal' => 'Halal',
'Haram' => 'Haram',
),
'allowed_values_function' => '',
),
'translatable' => 0,
'type' => 'list_text',
);

// Exported field_base: 'field_location'
$field_bases['field_location'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_location',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
'Washington, DC' => 'Washington, DC',
'Virginia' => 'Virginia',
'Maryland' => 'Maryland',
),
'allowed_values_function' => '',
),
'translatable' => 0,
'type' => 'list_text',
);

return $field_bases;
}
176 changes: 176 additions & 0 deletions sites/all/modules/ahmedm/ahmedm.features.field_instance.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
<?php
/**
* @file
* ahmedm.features.field_instance.inc
*/

/**
* Implements hook_field_default_field_instances().
*/
function ahmedm_field_default_field_instances() {
$field_instances = array();

// Exported field_instance: 'node-romance_personals-body'
$field_instances['node-romance_personals-body'] = array(
'bundle' => 'romance_personals',
'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-romance_personals-field_category_romance_iam'
$field_instances['node-romance_personals-field_category_romance_iam'] = array(
'bundle' => 'romance_personals',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 2,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_category_romance_iam',
'label' => 'I am',
'required' => 1,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -2,
),
);

// Exported field_instance: 'node-romance_personals-field_category_romance_seeking'
$field_instances['node-romance_personals-field_category_romance_seeking'] = array(
'bundle' => 'romance_personals',
'default_value' => NULL,
'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' => 'field_category_romance_seeking',
'label' => 'Seeking',
'required' => 1,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -1,
),
);

// Exported field_instance: 'node-romance_personals-field_location'
$field_instances['node-romance_personals-field_location'] = array(
'bundle' => 'romance_personals',
'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_location',
'label' => 'location',
'required' => 1,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -3,
),
);

// Translatables
// Included for use with string extractors like potx.
t('Body');
t('I am');
t('Seeking');
t('location');

return $field_instances;
}
23 changes: 23 additions & 0 deletions sites/all/modules/ahmedm/ahmedm.features.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* @file
* ahmedm.features.inc
*/

/**
* Implements hook_node_info().
*/
function ahmedm_node_info() {
$items = array(
'romance_personals' => array(
'name' => t('Romance/Personals'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Posting Title'),
'help' => '',
),
);
drupal_alter('node_info', $items);
return $items;
}
19 changes: 19 additions & 0 deletions sites/all/modules/ahmedm/ahmedm.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name = AhmedM
core = 7.x
package = Features
version = 7.x-1.0-beta3
project = ahmedm
dependencies[] = features
dependencies[] = list
dependencies[] = options
dependencies[] = text
features[features_api][] = api:2
features[field_base][] = body
features[field_base][] = field_category_romance_iam
features[field_base][] = field_category_romance_seeking
features[field_base][] = field_location
features[field_instance][] = node-romance_personals-body
features[field_instance][] = node-romance_personals-field_category_romance_iam
features[field_instance][] = node-romance_personals-field_category_romance_seeking
features[field_instance][] = node-romance_personals-field_location
features[node][] = romance_personals
7 changes: 7 additions & 0 deletions sites/all/modules/ahmedm/ahmedm.module
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
/**
* @file
* Code for the AhmedM feature.
*/

include_once 'ahmedm.features.inc';
1 change: 1 addition & 0 deletions themes/bartik/bartik.info
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ stylesheets[all][] = css/layout.css
stylesheets[all][] = css/style.css
stylesheets[all][] = css/colors.css
stylesheets[print][] = css/print.css
stylesheets[all][] = css/local-css.css

regions[header] = Header
regions[help] = Help
Expand Down
31 changes: 31 additions & 0 deletions themes/bartik/css/local-css.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#header.with-secondary-menu{
background-image: none;
background-color: #DDD;
height: 50px;
min-height:24px;

}

#footer-wrapper {
background: none repeat scroll 0% 0% #DDD;
}

.views-field.views-field-created {
color: #808080;
font-size: 0.7em;

}
.views-field-field-location {
color: #222;
font: Inherit;
font-size: 0.9em;

}
.views-field-field-category-romance-iam, .views-field-field-category-romance-seeking
{ color: blue;
}
#footer-wrapper {
height: 25px;
}