mysite.module

Version

1.97 (checked in on 2008/04/27 at 18:47:05 by agentken)

Description

Core module file for the MySite module.

@ingroup mysite

Functions

Namesort iconDescription
mysite_activateAllows the admin to activate a type plugin
mysite_add_linkFormat a link to add content to a MySite page.
mysite_add_pageAdds a new page to the user collection and takes them to the settings form for that page.
mysite_ajax_sortProcess a drag-and-drop sort from jQuery
mysite_autocompleteAllows registration of autocomplete functions through the include files. Since AJAX autocomplete requires a menu callback, and the include files do not have menu functions, we filter all AJAX requests through a single function.
mysite_blockImplementation of hook_block(). Calls mysite_type_hook_block().
mysite_block_handlerData handling for block placement. This function is part of the API.
mysite_checkCheck to see if a MySite type is already in the user's settings
mysite_check_settingsDisplay a message to the site administrator if the content type is inactive.
mysite_configureMenu callback; presents general configuration options.
mysite_configure_formFormsAPI for mysite_configure().
mysite_confirm_delete_formFormsAPI to confirm deletion of an item
mysite_confirm_delete_form_submitForm submit for mysite_confirm_delete_form()
mysite_contentPage for adding content to a MySite page.
mysite_content_addMenu callback to add a content item
mysite_content_formForm for mysite_content()
mysite_content_menuCreate a list of submenu items for the Add / Delete Content page.
mysite_content_promoteMenu callback to promote or demote an item
mysite_content_removeMenu callback to delete a content item.
mysite_content_settingsGenerates a user settings page for individual mysite content items.
mysite_content_settings_formFormsAPI for mysite_content_settings()
mysite_content_settings_form_submitForm submit for mysite_content_settings()
mysite_content_settings_form_validateForm validation for mysite_content_settings()
mysite_create_accountCreate a MySite record for a new user without submitting a form.
mysite_create_pageCreates an entry in {mysite_page} for the current user.
mysite_cronCron hook for cleaning out bad data We use this routine to remove MySite references to deleted content containers.
mysite_delete_formFormsAPI for deleting a user's entire collection.
mysite_delete_form_submitFormsAPI for mysite_delete_form()
mysite_delete_itemDelete an item from a form call or a url
mysite_demote_linkFormat a link to remove content from a MySite page.
mysite_displayDisplay a MySite content element outside of the MySite page
mysite_domainwarningsImplements hook_domainwarnings
mysite_editEdit a MySite page using a multi-stage form.
mysite_edit_formForm function for mysite_edit().
mysite_edit_form_submitForm submit for mysite_edit_form(). Implementation of the Forms API.
mysite_edit_menuCreate a list of submenu items for the user's Settings page.
mysite_enableInstaller function that sets MySite pages to show on all domains.
mysite_find_empty_page
mysite_getGet the data for a user MySite page from the {mysite} table.
mysite_get_content_elementGiven values, generate a table that behaves like a form so that users my add content to their MySite page.
mysite_get_customGet the data for a custom content type from the {mysite_content} table.
mysite_get_iconLookup icons for display to the end user. This function requires that the MySite Icons module is enabled.
mysite_get_includesReturn the valid include files for a given include type. This function is used to check which files to load when mysite_load_includes() is called. It checks to see that the include files are actually located inside the appropriate...
mysite_get_layoutGet the data associated with a layout file
mysite_get_maskGet file extension masks for each type.
mysite_get_myidRetrieve or create a MySite id for string-based keys. This function is used to create entries in the {mysite_content} table which is designed to handle non-numeric keys. This lets us keep all the keys in the {mysite_data} table as integers.
mysite_get_pagesReturn an array of all pages in a user collection.
mysite_helpImplementation of hook_help().
mysite_item_pageGet the page for a mysite item.
mysite_linkImplementation of hook_link()
mysite_loadLoads the associated files for a personal page view (stylesheets, MySite includes).
mysite_load_includesLoad the desired includes for this action. This function is a conditional load of enabled MySite plugins. In the case of administration pages, all includes are always loaded.
mysite_load_pageReturn data for a single page from a user collection.
mysite_menuImplementation of hook_menu().
mysite_menu_checkMullt-access control check, used in place of user_access() for some menu items.
mysite_messageDisplay a MySite message to a user. These are mainly used when items are deleted by mysite_cron().
mysite_outputReturn the proper content based on the request.
mysite_pageThe default MySite page view.
mysite_permImplementation of hook_perm().
mysite_plugin_failureError handling if a plugin is missing. This is a bare bones user error message.
mysite_prepare_columnsPrepare the output into the proper column for the layout.
mysite_promote_linkFormat a link to remove content from a MySite page
mysite_remove_linkFormat a link to remove content from a MySite page,
mysite_remove_pageRemove a single page from a user collection.
mysite_remove_page_formFormsAPI to confirm page deletion
mysite_remove_page_form_submitFormsAPI for page removal.
mysite_renderAllows a MySite element to be used by an external application or menu callback
mysite_reset_formFormsAPI for resetting a user's page to the default settings and content.
mysite_reset_form_submitFormsAPI for mysite_reset_form()
mysite_search_handlerData handling for search-based submissions This function is part of the API, and allows the type includes to hand content searches to a single handler.
mysite_settings_linkFormat a link to edit item configuration from a MySite page
mysite_sitenameReturn the sitename in the format 'My sitename'
mysite_sort_optionsHelper functions to sort options array by category and weight.
mysite_teaserGenerate a fully-themed teaser element for MySite content items.
mysite_type_settingsMenu callback; presents forms with configuration options for each content type.
mysite_type_settings_formAdmin settings form for each content type. Presents configuration options for visible settings.
mysite_type_settings_form_submitFormsAPI for mysite_type_settings_form().
mysite_updatedRegister an update in the mysite table on add/delete.
mysite_userImplementation of hook_user().
mysite_usort_optionsHelper for mysite_sort_actions()
mysite_viewTake user to the correct MySite page, based on mysite_configure().
mysite_views_query_substitutionsMySite Views support Code by mariano.barcia http://drupal.org/node/198904 Allow replacement of current group so we can cache these queries.
mysite_view_allView all active MySite users
mysite_view_defaultShow the default user page
theme_mysite_actionsTheme for action buttons (promote, demote, remove)
theme_mysite_anonymous_helpA placeholder theme for MySite help for not logged in users
theme_mysite_block_helpA placeholder theme for MySite block help
theme_mysite_configure_formTheme the MySite configuration form
theme_mysite_content_helpA placeholder theme for MySite content help
theme_mysite_content_settings_formTheme the element configuration form
theme_mysite_create_helpA placeholder theme for MySite creation help. It is recommended that you use Drupal's theme override system to customize this function for your site. This function will also load the default MySite content that has been defined by the administrator.
theme_mysite_dropletTheme a droplet for MySite. Allows for formatting droplets via css.
theme_mysite_edit_formatTheme the format selection form
theme_mysite_edit_layoutTheme the layout selection form
theme_mysite_edit_styleTheme the style selection form
theme_mysite_edit_themeTheme the theme selection form
theme_mysite_empty_columnTheme a message when a layout column is empty
theme_mysite_linksTheme hook_links() as a widget
theme_mysite_no_optionsTheme a message when a null content set is returned
theme_mysite_pagerReturn a custom page for browsing content. Using a custom function because not all content groups are query-based.
theme_mysite_submenuTheme function for submenus on the Add Content screen
theme_mysite_teaserTheme a node teaser for MySite This use of this function can be edited for specific node types using the mysite_teaser() function. Placing this inside a theme function also allows for theme overrides.