25 require_once( dirname( __FILE__ ) .
'/bmlt-drupal-satellite-plugin.php' );
44 $text = array( $BMLTPluginOp->process_text( $BMLTPluginOp->local_strings[
'en'][
'add_instance'] ) );
52 $text = $BMLTPluginOp->process_text( $BMLTPluginOp->local_strings[
'en'][
'add_instance'] );
56 $text = _bmlt_prepare( $text );
60 $text = _bmlt_process( $text );
75 $items = array(
'admin/settings/bmlt' => array(
76 'title' => $BMLTPluginOp->process_text( $BMLTPluginOp->local_strings[
'en'][
'bmlt_settings'] ),
77 'description' => $BMLTPluginOp->process_text( $BMLTPluginOp->local_strings[
'en'][
'describe_admin'] ),
78 'page callback' =>
'bmlt_admin_form',
79 'access arguments' => array( $BMLTPluginOp->process_text( $BMLTPluginOp->local_strings[
'en'][
'access_admin'] ) )
92 $BMLTPluginOp->admin_ajax_handler();
93 $BMLTPluginOp->admin_head();
94 return $BMLTPluginOp->return_admin_page();
103 global $BMLTPluginOp;
105 $BMLTPluginOp->ajax_router();
114 global $BMLTPluginOp;
116 return array(
'bmlt' => array(
'title' => $BMLTPluginOp->process_text( $BMLTPluginOp->local_strings[
'en'][
'add_instance'] ),
117 'prepare callback' =>
'_bmlt_prepare',
118 'process callback' =>
'_bmlt_process',
128 function _bmlt_prepare($in_text,
132 global $BMLTPluginOp;
134 if ( $BMLTPluginOp->get_shortcode ( $in_text,
'bmlt' )
135 || $BMLTPluginOp->get_shortcode ( $in_text,
'simple_search_list' )
136 || $BMLTPluginOp->get_shortcode ( $in_text,
'bmlt_map' )
137 || $BMLTPluginOp->get_shortcode ( $in_text,
'bmlt_simple' )
138 || $BMLTPluginOp->get_shortcode ( $in_text,
'bmlt_mobile' )
139 || $BMLTPluginOp->get_shortcode ( $in_text,
'bmlt_table' )
140 || $BMLTPluginOp->get_shortcode ( $in_text,
'bmlt_quicksearch' )
143 $BMLTPluginOp->standard_head( $in_text );
153 function _bmlt_process($in_text,
157 global $BMLTPluginOp;
159 return $BMLTPluginOp->content_filter( $in_text );
bmlt_boot()
This function sets up the header for the module.
bmlt_menu()
Sets up the menu for the BMLT.
bmlt_admin_form()
This function returns the HTML for the BMLT admin.
bmlt_filter_info()
This tells Drupal 7 about our filter.
bmlt_filter($op= 'list', $delta=0, $format=-1, $text= '', $cache_id=0)
This displays the actual BMLT content if the text contains the BMLT shortcodes or HTML comments...