domain.module

Version 1.134.2.11 (checked in on 2010/03/01 at 01:55:33 by agentken)

Core module functions for the Domain Access suite. @ingroup domain

Constants

NameDescription
DOMAIN_ASSIGN_USERSDefines whether to assign users to the default domain on install. You may alter this variable before installing the module. See README.txt.
DOMAIN_INSTALL_RULEDefines how to handle access permissions when installing the module. You may alter this variable before installing the module. See README.txt.
DOMAIN_LIST_SIZESets a default value at which to start paginating Domain lists.
DOMAIN_SITE_GRANTDefines whether to show affiliated content on all domains. You may alter this variable before installing the module. See README.txt.

Functions

NameDescription
domain_apiHelper function for passing hook_domainload() by reference.
domain_batch_validateValidate handler for hook_domainbatch()
domain_blockImplement hook_block()
domain_bootAdds the domain user data to the $user object.
domain_bootstrap_registerRegister the modules needed to load during bootstrap. Stores results in the 'domain_bootstrap_modules' variable.
domain_bootstrap_unregisterRemoves a module so it is not loaded during domain_bootstrap.
domain_check_primaryCheck to see if a redirect to the primary domain is needed.
domain_content_extra_fieldsImplement hook_content_extra_fields()
domain_cronImplement hook_cron()
domain_db_rewrite_sqlImplement hook_db_rewrite_sql().
domain_defaultAssigns the default settings to domain 0, the root domain.
domain_domainbatchImplement hook_domainbatch()
domain_domainignoreImplement hook_domainignore().
domain_domaininstallImplement hook_domaininstall()
domain_domainloadImplement hook_domainload()
domain_domainsReturn all active domains (including the default) as an array.
domain_domainupdateImplement hook_domainupdate()
domain_enableUpon enabling this module, store the default view grant in the {node_access} table. Then it assigns all users to the primary domain.
domain_form_alterImplement hook_form_alter()
domain_form_devel_generate_content_form_alterAdd settings to devel generate module.
domain_form_permCheck a user's permissions for displaying the Domain form on nodes.
domain_form_sitename_submitFormsAPI submit handler to track site name changes.
domain_form_system_site_information_settings_alterUpdate the default domain's sitename.
domain_form_user_admin_account_alterImplement hook_form_alter().
domain_get_domainReturn the currently active domain.
domain_get_node_domainsGet the domains for a node.
domain_get_node_matchGet the best matching domain for a node link.
domain_get_pathDetermine an absolute path for a domain
domain_get_path_matchAllow the lookup of path rewrites.
domain_get_uriDetermine an absolute path to the current page
domain_get_user_domainsGet the domains a user is assigned to.
domain_gotoDetermine if we must switch the active domain.
domain_grant_allActivate the hidden grant for searches.
domain_initImplement hook_init().
domain_invalid_domain_requestedRedirect a request to an invalid domain.
domain_loadMenu loader function.
domain_lookupRuns a lookup against the {domain} table. One of the two values must be present
domain_lookup_simpleDetermines a domain_id matching given $_name.
domain_menuImplement hook_menu()
domain_nodeapiImplement hook_nodeapi().
domain_node_access_acknowledgeImplement hook_node_access_acknowlegde for devel.module
domain_node_access_explainImplement hook_node_access_explain for devel.module
domain_node_access_recordsImplement hook_node_access_records()
domain_node_grantsImplement hook_node_grants.
domain_node_save_redirectOn a node save, make sure the editor is returned to a domain that can view the node.
domain_pathHelper function for passing hook_domainpath() by reference.
domain_permImplement hook_perm()
domain_request_nameDetermines current, fully qualified domain name.
domain_resolve_hostTries to match the current (host) domain name to a domain in the {domain} table and returns a respective domain_id.
domain_select_formatDetermine the default format for domain list forms.
domain_set_default_grantEnsure that the 'domain_all' grant is present.
domain_set_domainSet the active domain to something other than the HTTP request.
domain_set_primary_domainSet the primary domain properly, if necessary.
domain_simpletestImplement hook_simpletest()
domain_themeImplement hook_theme()
domain_token_listImplement hook_token_list().
domain_token_valuesImplement hook_token_values().
domain_unique_domainValidate the domain against existing domains.
domain_update_usersFormsAPI to handle the batch update of users.
domain_url_encodeSimple function to clean strings for use in for example paths.
domain_userImplement hook_user()
domain_user_operationsImplement hook_user_operations().
domain_user_operation_assignCallback for domain_content_node_operations().
domain_validateValidates a domain string.
domain_valid_domainValidate the domain against all correctable errors.
domain_warning_checkSets a message to the site admin.
_domain_id_sortHelper sort function
_domain_name_sortHelper sort function
_domain_path_modulesHelper function for domain_path() checks.
_domain_rid_sortHelper sort function
_domain_rname_sortHelper sort function
_domain_rurl_sortHelper sort function
_domain_store_grantsStore node_access records in the {domain_access} table.
_domain_url_sortHelper sort function
_domain_user_listHelper function to get the names of all domains for a user.

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List